wxyz.datagrid#

Lumino DataGrid widgets powered by pandas and JSON Table Schema

class wxyz.datagrid.CellRenderer(**kwargs: Any)[source]#

Bases: DataGridBase

[0.1.6]/cellrenderer.ts#L29

class wxyz.datagrid.DataGrid(**kwargs: Any)[source]#

Bases: DataGridBase, Box

An (overly) opinionated DataFrame-backed datagrid [0.1.6]/datagrid.ts#L64

Used JSONModel, which expect JSON Table Schema [0.1.6]/jsonmodel.ts#L21

box_style#

Use a predefined styling for the box.

children#

List of widget children

class wxyz.datagrid.FixedFunc(**kwargs: Any)[source]#

Bases: FormatFunc

[0.1.6]/textrenderer.ts#L365

class wxyz.datagrid.FormatFunc(**kwargs: Any)[source]#

Bases: DataGridBase

[0.1.6]/textrenderer.ts#L308

class wxyz.datagrid.GridStyle(**kwargs: Any)[source]#

Bases: Widget

JSON-compatible Lumino DataGrid styles.

backgroundColor#

The background color for the body cells.

This color is layered on top of the voidColor.

cursorBorderColor#

The border color for the cursor.

cursorFillColor#

The fill color for the cursor.

gridLineColor#

The color for the grid lines of the body cells.

The grid lines are draw on top of the cell contents.

headerBackgroundColor#

The background color for the header cells.

This color is layered on top of the voidColor.

headerGridLineColor#

The color for the grid lines of the header cells.

The grid lines are draw on top of the cell contents.

headerHorizontalGridLineColor#

The color for the horizontal grid lines of the header cells.

This overrides the headerGridLineColor option.

headerSelectionBorderColor#

The border color for a header selection.

headerSelectionFillColor#

The fill color for a header selection.

headerVerticalGridLineColor#

The color for the vertical grid lines of the header cells.

This overrides the headerGridLineColor option.

horizontalGridLineColor#

The color for the horizontal grid lines of the body cells.

This overrides the gridLineColor option.

rowBackgroundColor#

Realized as a functor, a single value will affect all rows, while any other value will be return modulo the position.

scrollShadow#

The drop shadow effect when the grid is scrolled.

selectionBorderColor#

The border color for a selection.

selectionFillColor#

The fill color for a selection.

verticalGridLineColor#

The color for the vertical grid lines of the body cells.

This overrides the gridLineColor option.

voidColor#

The void color for the data grid.

This is the base fill color for the entire data grid.

class wxyz.datagrid.SelectGrid(**kwargs: Any)[source]#

Bases: StyleGrid

A styled grid with selections

box_style#

Use a predefined styling for the box.

children#

List of widget children

selection#

the first selection as [c0, c1, r0, r1]

selections#

all current selections as [c0, c1, r0, r1]

viewport#

the current viewport as [c0, c1, r0, r1]

class wxyz.datagrid.StyleGrid(**kwargs: Any)[source]#

Bases: DataGrid

A styled grid

[0.1.6]/datagrid.ts#L64

box_style#

Use a predefined styling for the box.

children#

List of widget children

class wxyz.datagrid.TextRenderer(**kwargs: Any)[source]#

Bases: CellRenderer

[0.1.6]/textrenderer.ts#L21