Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Basic html element styling #114

Open
anders-kiaer opened this issue Sep 28, 2018 · 0 comments
Open

Basic html element styling #114

anders-kiaer opened this issue Sep 28, 2018 · 0 comments

Comments

@anders-kiaer
Copy link
Collaborator

anders-kiaer commented Sep 28, 2018

Basic html elements should, when used in a webviz instance, have css styling depending on the theme.

As an example, the user should be able to do

import numpy as np
import pandas as pd
from webviz import Webviz, Html

web = Webviz('Example', theme='equinor')

df = pd.DataFrame(np.random.rand(10,3), columns=['A', 'B', 'C'])

web.index.add_content(Html(df.to_html()))

web.write_html("./webviz_table_example")

and get a nicely rendered table using the Equinor theme (in this case). Another use case is tables rendered directly from the current PageElement Markdown.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant