-
Notifications
You must be signed in to change notification settings - Fork 8
/
web_component.py
25 lines (19 loc) · 1.09 KB
/
web_component.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""Implementation of the Predix App Navigation Widget
See https://www.predix-ui.com/#/elements/px-app-nav"""
from bokeh.core import properties
from bokeh.models import ColumnDataSource
from bokeh.models.layouts import HTMLBox
class WebComponent(HTMLBox):
"""A Bokeh Model that enables easily creating new Panel components from web components
See https://www.predix-ui.com/#/elements/px-app-nav"""
componentType = properties.String("htmlbox")
innerHTML = properties.String("")
attributesToWatch = properties.Dict(properties.String, properties.Any)
attributesLastChange = properties.Dict(properties.String, properties.Any)
propertiesToWatch = properties.Dict(properties.String, properties.Any)
propertiesLastChange = properties.Dict(properties.String, properties.Any)
eventsToWatch = properties.Dict(properties.String, properties.Any)
eventsCountLastChange = properties.Dict(properties.String, properties.Int)
columnDataSource = properties.Instance(ColumnDataSource)
columnDataSourceOrient = properties.String()
columnDataSourceLoadFunction = properties.String()