HtlmTableDatatable Module
- class epyk.core.html.tables.HtlmTableDatatable.Table(page: PageModel, records, width, height, html_code, options, profile)
- build(data: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = False, component_id: Optional[str] = None, stop_state: bool = True, dataflows: Optional[List[dict]] = None) str
- Parameters:
data – A String corresponding to a JavaScript object
options – Optional. Specific Python options available for this component
profile – Optional. A flag to set the component performance storage
component_id – Optional. The component reference (the htmlCode)
stop_state – Remove the top panel for the component state (error, loading…)
dataflows – Chain of data transformations
- define(options: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, dataflows: Optional[List[dict]] = None)
- Parameters:
options –
dataflows –
- Returns:
- property dom: JsHtml
Return all the Javascript functions defined for an HTML Component. Those functions will use plain javascript available for a DOM element by default.
Usage:
div = page.ui.div(htmlCode="testDiv") print(div.dom.content)
- Returns:
A Javascript Dom object.
- get_column(by_title: str)
Get the column object from it is title.
- Parameters:
by_title –
- property js: DatatableAPI
Return the Javascript internal object.
- Returns:
A Javascript object
- property options: TableConfig
Datatable table options.
- property style: Datatable
Property to the CSS Style of the component.
- property tableId: str
Return the Javascript variable of the chart.