Table

class jdaviz.core.template_mixin.Table(**kwargs: Any)[source] [edit on github]

Bases: PluginSubcomponent

Table subcomponent. For most cases where a plugin only requires a single table, use the mixin instead.

To use in a plugin, define plugin.table = Table(plugin), create a table_widget Unicode traitlet, and set plugin.table_widget = 'IPY_MODEL_'+self.table.model_id.

To render in the plugin’s vue file:

<jupyter-widget :widget="table_widget"></jupyter-widget>

Public constructor

Attributes Summary

headers_avail

An instance of a Python list.

headers_visible

An instance of a Python list.

items

An instance of a Python list.

template_file

Methods Summary

add_item(item)

Add an item/row to the table.

clear_table()

Clear all entries/markers from the current table.

default_value_for_column([colname, value])

export_table()

Export the QTable representation of the table.

vue_clear_table([data])

Attributes Documentation

headers_avail

An instance of a Python list.

headers_visible

An instance of a Python list.

items

An instance of a Python list.

template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/jdaviz/envs/v3.5.0/lib/python3.9/site-packages/jdaviz/core/template_mixin.py', '../components/plugin_table.vue')

Methods Documentation

add_item(item)[source] [edit on github]

Add an item/row to the table.

Parameters:
itemQTable, QTableRow, or dictionary of row-name, value pairs
clear_table()[source] [edit on github]

Clear all entries/markers from the current table.

default_value_for_column(colname=None, value=None)[source] [edit on github]
export_table()[source] [edit on github]

Export the QTable representation of the table.

vue_clear_table(data=None)[source] [edit on github]