Tables Interface

class epyk.interfaces.tables.CompTables.Tables(ui)
property aggrids: AgGrid

AG-Grid is the industry standard for JavaScript Enterprise Applications. Developers using ag-Grid are building applications that would not be possible if ag-Grid did not exist.

Tags:

Categories:

Usage:

table = page.ui.tables.aggrids.table(rows=["athlete", "country", "sport"])
table.onReady([
  page.js.fetch("https://www.ag-grid.com/example-assets/olympic-winners.json").json().process(table.js.setRowData)
])
table.attr["class"].add("ag-theme-alpine")

Related Pages:

basic(records: Optional[List[dict]] = None, cols=None, rows=None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (None, 'px'), html_code: Optional[str] = None, options: Optional[dict] = None, profile: Optional[Union[bool, dict]] = None)
Tags:

Categories:

Usage:

simple_table = page.ui.tables.basic(df.to_dict("records"), cols=["COL1"], rows=["COL2"])
simple_table.add({"COL1": "Value"})
Parameters:
  • records – Optional. The list of dictionaries with the input data

  • cols – Optional. The list of key from the record to be used as columns in the table

  • rows – Optional. The list of key from the record to be used as rows in the table

  • width – Optional. A tuple with the integer for the component width and its unit

  • height – Optional. A tuple with the integer for the component height and its unit

  • html_code – Optional. An identifier for this component (on both Python and Javascript side)

  • options – Optional. Specific Python options available for this component

  • profile – Optional. A flag to set the component performance storage

property d3: D3

Interface to the different Tabulator configurations.

Tags:

Categories:

Related Pages:

property datatables: Datatables

Interface to the different Datatable configurations.

Tags:

Categories:

Related Pages:

property google: Google

Interface to the Google Table interface.

In order to use it, the Google products need to be specially enabled.

grid(records, cols: Optional[list] = None, rows: Optional[list] = None, width: Optional[Union[tuple, int, str]] = (None, '%'), height: Optional[Union[tuple, int, str]] = (None, 'px'), html_code: Optional[str] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = None)
Tags:

Categories:

Usage:

:param records: Optional. The list of dictionaries with the input data
:param cols: Optional. The list of key from the record to be used as columns in the table
:param rows: Optional. The list of key from the record to be used as rows in the table
:param width: Optional. The width of the component in the page, default (100, '%')
:param height: Optional. The height of the component in the page, default (330, "px")
:param html_code: Optional. An identifier for this component (on both Python and Javascript side)
:param options: Optional. Specific Python options available for this component
:param profile: Optional. A flag to set the component performance storage
menu(table: Optional[Html] = None, height: Optional[Union[tuple, int, str]] = (18, 'px'), options: Optional[Union[bool, dict]] = None, update_funcs: Optional[list] = None, post: Optional[Union[list, str]] = None, profile: Optional[Union[bool, dict]] = None, columns: Optional[dict] = None, title: Optional[Union[str, dict]] = None)

Add a standard menu on the table to trigger standard operation (add, empty, copy, download).

Tags:

Categories:

Usage:

hierarchy = page.ui.tables.tabulators.hierarchy(html_code="hierarchy")
menu = page.ui.tables.menu(hierarchy)
Parameters:
  • table – Optional. The HTML table component

  • height – Optional. A tuple with the integer for the component height and its unit

  • options – Optional. Specific Python options available for this component

  • update_funcs – Optional. JavaScript functions to update the table component

  • post – Optional. The event used to update the table

  • profile – Optional. A flag to set the component performance storage

  • columns – Optional.

  • title – Optional. The title value or component

property pivots: Pivottable

Interface to the different Pivot Table configurations.

Tags:

Categories:

Related Pages:

property plotlys: Plotly

Interface to the different Tabulator configurations.

Tags:

Categories:

Related Pages:

property tabulators: Tabulators

Interface to the different Tabulator configurations.

Tags:

Categories:

Usage:

Related Pages: