Skip to content

DataRow2

Inherits: DataRow

Extends flet.DataRow, adding row-level tap events.

There are also on_secondary_tap and on_secondary_tap_down, which are not available in DataCells and can be useful in desktop settings to handle right-click actions.

Properties

Events

Properties#

decoration class-attribute instance-attribute #

decoration: Optional[BoxDecoration] = None

Decoration to be applied to this row.

Note

If provided, [DataTable2.divider_thickness][flet_datatable2.DataTable2.divider_thickness] has no effect.

specific_row_height class-attribute instance-attribute #

specific_row_height: Optional[Number] = None

Specific row height.

Falls back to DataTable2.data_row_height if not set.

Events#

on_double_tap class-attribute instance-attribute #

on_double_tap: Optional[ControlEventHandler[DataRow2]] = (
    None
)

Fires when the row is double-tapped.

Note

Won't be called if tapped cell has any tap event handlers (on_tap, on_double_tap, on_long_press, on_tap_cancel, on_tap_down) set.

on_secondary_tap class-attribute instance-attribute #

on_secondary_tap: Optional[
    ControlEventHandler[DataRow2]
] = None

Fires when the row is right-clicked (secondary tap).

Note

Won't be called if tapped cell has any tap event handlers (on_tap, on_double_tap, on_long_press, on_tap_cancel, on_tap_down) set.

on_secondary_tap_down class-attribute instance-attribute #

on_secondary_tap_down: Optional[
    ControlEventHandler[DataRow2]
] = None

Fires when the row is right-clicked (secondary tap down).

Note

Won't be called if tapped cell has any tap event handlers (on_tap, on_double_tap, on_long_press, on_tap_cancel, on_tap_down) set.

on_tap class-attribute instance-attribute #

Fires when the row is tapped.

Note

Won't be called if tapped cell has any tap event handlers (on_tap, on_double_tap, on_long_press, on_tap_cancel, on_tap_down) set.