You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: py/h2o_lightwave/h2o_lightwave/types.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -3922,7 +3922,7 @@ def __init__(
3922
3922
self.pagination = pagination
3923
3923
"""Display a pagination control at the bottom of the table. Set this value using `ui.table_pagination()`."""
3924
3924
self.events = events
3925
-
"""The events to capture on this table when pagination is set. One of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset' | 'select'."""
3925
+
"""The events to capture on this table. When pagination is set, one of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset'. These events are available regardless of pagination: 'select' | 'group_change'."""
3926
3926
self.single = single
3927
3927
"""True to allow only one row to be selected at time. Mutually exclusive with `multiple` attr."""
Copy file name to clipboardExpand all lines: py/h2o_lightwave/h2o_lightwave/ui.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -1478,7 +1478,7 @@ def table(
1478
1478
tooltip: An optional tooltip message displayed when a user clicks the help icon to the right of the component.
1479
1479
groups: Creates collapsible / expandable groups of data rows. Mutually exclusive with `rows` attr.
1480
1480
pagination: Display a pagination control at the bottom of the table. Set this value using `ui.table_pagination()`.
1481
-
events: The events to capture on this table when pagination is set. One of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset' | 'select'.
1481
+
events: The events to capture on this table. When pagination is set, one of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset'. These events are available regardless of pagination: 'select' | 'group_change'.
1482
1482
single: True to allow only one row to be selected at time. Mutually exclusive with `multiple` attr.
1483
1483
value: The name of the selected row. If this parameter is set, single selection will be allowed (`single` is assumed to be `True`).
Copy file name to clipboardExpand all lines: py/h2o_wave/h2o_wave/types.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -3922,7 +3922,7 @@ def __init__(
3922
3922
self.pagination = pagination
3923
3923
"""Display a pagination control at the bottom of the table. Set this value using `ui.table_pagination()`."""
3924
3924
self.events = events
3925
-
"""The events to capture on this table when pagination is set. One of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset' | 'select'."""
3925
+
"""The events to capture on this table. When pagination is set, one of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset'. These events are available regardless of pagination: 'select' | 'group_change'."""
3926
3926
self.single = single
3927
3927
"""True to allow only one row to be selected at time. Mutually exclusive with `multiple` attr."""
Copy file name to clipboardExpand all lines: py/h2o_wave/h2o_wave/ui.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -1478,7 +1478,7 @@ def table(
1478
1478
tooltip: An optional tooltip message displayed when a user clicks the help icon to the right of the component.
1479
1479
groups: Creates collapsible / expandable groups of data rows. Mutually exclusive with `rows` attr.
1480
1480
pagination: Display a pagination control at the bottom of the table. Set this value using `ui.table_pagination()`.
1481
-
events: The events to capture on this table when pagination is set. One of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset' | 'select'.
1481
+
events: The events to capture on this table. When pagination is set, one of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset'. These events are available regardless of pagination: 'select' | 'group_change'.
1482
1482
single: True to allow only one row to be selected at time. Mutually exclusive with `multiple` attr.
1483
1483
value: The name of the selected row. If this parameter is set, single selection will be allowed (`single` is assumed to be `True`).
#' @param tooltip An optional tooltip message displayed when a user clicks the help icon to the right of the component.
1704
1704
#' @param groups Creates collapsible / expandable groups of data rows. Mutually exclusive with `rows` attr.
1705
1705
#' @param pagination Display a pagination control at the bottom of the table. Set this value using `ui.table_pagination()`.
1706
-
#' @param events The events to capture on this table when pagination is set. One of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset' | 'select'.
1706
+
#' @param events The events to capture on this table. When pagination is set, one of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset'. These events are available regardless of pagination: 'select' | 'group_change'.
1707
1707
#' @param single True to allow only one row to be selected at time. Mutually exclusive with `multiple` attr.
1708
1708
#' @param value The name of the selected row. If this parameter is set, single selection will be allowed (`single` is assumed to be `True`).
Copy file name to clipboardExpand all lines: ui/src/table.tsx
+22-3
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,7 @@ export interface Table {
152
152
groups?: TableGroup[]
153
153
/** Display a pagination control at the bottom of the table. Set this value using `ui.table_pagination()`. */
154
154
pagination?: TablePagination
155
-
/** The events to capture on this table when pagination is set. One of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset' | 'select'. */
155
+
/** The events to capture on this table. When pagination is set, one of 'search' | 'sort' | 'filter' | 'download' | 'page_change' | 'reset'. These events are available regardless of pagination: 'select' | 'group_change'. */
156
156
events?: S[]
157
157
/** True to allow only one row to be selected at time. Mutually exclusive with `multiple` attr. */
Groups are shown in a collapsed state by default. With the `collapsed` attribute you can change this behavior.
404
+
Groups are shown in a collapsed state by default. With the `collapsed` attribute you can change this behavior. You can also keep track of the collapsed states by registering a `'group_change'`[event](/docs/examples/table-events-group) (populated in `q.events`). This is useful when needing to refresh the table and persist collapsed states.
0 commit comments