You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a deephaven.ui.html package that contains some basic building blocks for HTML elements.
Example usage:
import deephaven.ui as ui
import deephaven.ui.html as html
@ui.component
def my_component():
return html.div(
html.h1('Hello'),
html.span('Some red text', color='#ff0000')
)
Element should be generic to allow any basic HTML tag with any serializable attributes. Event listeners are not required for this.
Some example HTML elements:
div
span
h1 - h6
p
a
ul, ol, li
table, thead, tbody, tr, th, td
The text was updated successfully, but these errors were encountered:
I wouldn't want people unintentionally using raw html elements when a better equivalent spectrum component exists. Also they will lack a consistent way to be styled which gives them limited utility. I am not sure we get much value from offering these a components, and would rather take a more hand holding approach.
div is a view
p is text
h1 - h6 is heading
a is link
table is tableview, but we also have our tables
span and list is absent, but we kind of have that if we do a markdown component, which I think is more valuable. If there aren't event listeners, this doesn't add much value. If you are thinking of these as something users could use as building blocks for higher level components, I would say that should be done as a js plugin.
Add a
deephaven.ui.html
package that contains some basic building blocks for HTML elements.Example usage:
Element should be generic to allow any basic HTML tag with any serializable attributes. Event listeners are not required for this.
Some example HTML elements:
The text was updated successfully, but these errors were encountered: