Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wusteven815 committed Nov 11, 2024
1 parent 6b7cf89 commit b150c3a
Showing 1 changed file with 61 additions and 58 deletions.
119 changes: 61 additions & 58 deletions plugins/ui/src/deephaven/ui/components/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,80 +186,83 @@ def __init__(
self,
table: Table,
*,
format_: TableFormat | list[TableFormat] | None = None,
on_row_press: RowPressCallback | None = None,
on_row_double_press: RowPressCallback | None = None,
on_cell_press: CellPressCallback | None = None,
on_cell_double_press: CellPressCallback | None = None,
on_column_press: ColumnPressCallback | None = None,
on_column_double_press: ColumnPressCallback | None = None,
always_fetch_columns: ColumnName | list[ColumnName] | bool | None = None,
quick_filters: dict[ColumnName, QuickFilterExpression] | None = None,
format_: TableFormat | list[TableFormat] | Undefined = UNDEFINED,
on_row_press: RowPressCallback | Undefined = UNDEFINED,
on_row_double_press: RowPressCallback | Undefined = UNDEFINED,
on_cell_press: CellPressCallback | Undefined = UNDEFINED,
on_cell_double_press: CellPressCallback | Undefined = UNDEFINED,
on_column_press: ColumnPressCallback | Undefined = UNDEFINED,
on_column_double_press: ColumnPressCallback | Undefined = UNDEFINED,
always_fetch_columns: ColumnName
| list[ColumnName]
| bool
| Undefined = UNDEFINED,
quick_filters: dict[ColumnName, QuickFilterExpression] | Undefined = UNDEFINED,
show_quick_filters: bool = False,
show_grouping_column: bool = True,
show_search: bool = False,
reverse: bool = False,
front_columns: list[ColumnName] | None = None,
back_columns: list[ColumnName] | None = None,
frozen_columns: list[ColumnName] | None = None,
hidden_columns: list[ColumnName] | None = None,
column_groups: list[ColumnGroup] | None = None,
density: Literal["compact", "regular", "spacious"] | None = None,
front_columns: list[ColumnName] | Undefined = UNDEFINED,
back_columns: list[ColumnName] | Undefined = UNDEFINED,
frozen_columns: list[ColumnName] | Undefined = UNDEFINED,
hidden_columns: list[ColumnName] | Undefined = UNDEFINED,
column_groups: list[ColumnGroup] | Undefined = UNDEFINED,
density: Literal["compact", "regular", "spacious"] | Undefined = UNDEFINED,
context_menu: (
ResolvableContextMenuItem | list[ResolvableContextMenuItem] | None
) = None,
ResolvableContextMenuItem | list[ResolvableContextMenuItem] | Undefined
) = UNDEFINED,
context_header_menu: (
ResolvableContextMenuItem | list[ResolvableContextMenuItem] | None
) = None,
databars: list[TableDatabar] | None = None,
key: str | None = None,
flex: LayoutFlex | None = None,
flex_grow: float | None = None,
flex_shrink: float | None = None,
flex_basis: DimensionValue | None = None,
align_self: AlignSelf | None = None,
justify_self: JustifySelf | None = None,
order: int | None = None,
grid_area: str | None = None,
grid_row: str | None = None,
grid_row_start: str | None = None,
grid_row_end: str | None = None,
grid_column: str | None = None,
grid_column_start: str | None = None,
grid_column_end: str | None = None,
margin: DimensionValue | None = None,
margin_top: DimensionValue | None = None,
margin_bottom: DimensionValue | None = None,
margin_start: DimensionValue | None = None,
margin_end: DimensionValue | None = None,
margin_x: DimensionValue | None = None,
margin_y: DimensionValue | None = None,
width: DimensionValue | None = None,
height: DimensionValue | None = None,
min_width: DimensionValue | None = None,
min_height: DimensionValue | None = None,
max_width: DimensionValue | None = None,
max_height: DimensionValue | None = None,
position: Position | None = None,
top: DimensionValue | None = None,
bottom: DimensionValue | None = None,
start: DimensionValue | None = None,
end: DimensionValue | None = None,
left: DimensionValue | None = None,
right: DimensionValue | None = None,
z_index: int | None = None,
ResolvableContextMenuItem | list[ResolvableContextMenuItem] | Undefined
) = UNDEFINED,
databars: list[TableDatabar] | Undefined = UNDEFINED,
key: str | Undefined = UNDEFINED,
flex: LayoutFlex | Undefined = UNDEFINED,
flex_grow: float | Undefined = UNDEFINED,
flex_shrink: float | Undefined = UNDEFINED,
flex_basis: DimensionValue | Undefined = UNDEFINED,
align_self: AlignSelf | Undefined = UNDEFINED,
justify_self: JustifySelf | Undefined = UNDEFINED,
order: int | Undefined = UNDEFINED,
grid_area: str | Undefined = UNDEFINED,
grid_row: str | Undefined = UNDEFINED,
grid_row_start: str | Undefined = UNDEFINED,
grid_row_end: str | Undefined = UNDEFINED,
grid_column: str | Undefined = UNDEFINED,
grid_column_start: str | Undefined = UNDEFINED,
grid_column_end: str | Undefined = UNDEFINED,
margin: DimensionValue | Undefined = UNDEFINED,
margin_top: DimensionValue | Undefined = UNDEFINED,
margin_bottom: DimensionValue | Undefined = UNDEFINED,
margin_start: DimensionValue | Undefined = UNDEFINED,
margin_end: DimensionValue | Undefined = UNDEFINED,
margin_x: DimensionValue | Undefined = UNDEFINED,
margin_y: DimensionValue | Undefined = UNDEFINED,
width: DimensionValue | Undefined = UNDEFINED,
height: DimensionValue | Undefined = UNDEFINED,
min_width: DimensionValue | Undefined = UNDEFINED,
min_height: DimensionValue | Undefined = UNDEFINED,
max_width: DimensionValue | Undefined = UNDEFINED,
max_height: DimensionValue | Undefined = UNDEFINED,
position: Position | Undefined = UNDEFINED,
top: DimensionValue | Undefined = UNDEFINED,
bottom: DimensionValue | Undefined = UNDEFINED,
start: DimensionValue | Undefined = UNDEFINED,
end: DimensionValue | Undefined = UNDEFINED,
left: DimensionValue | Undefined = UNDEFINED,
right: DimensionValue | Undefined = UNDEFINED,
z_index: int | Undefined = UNDEFINED,
) -> None:
props = locals()
del props["self"]
self._props = props
self._key = props.get("key")
self._key: str | Undefined = props.get("key") # type: ignore

@property
def name(self):
return "deephaven.ui.elements.UITable"

@property
def key(self) -> str | None:
def key(self) -> str | Undefined:
return self._key

def render(self, context: RenderContext) -> dict[str, Any]:
Expand Down

0 comments on commit b150c3a

Please sign in to comment.