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 #

decoration: BoxDecoration | None = None

Decoration to be applied to this row.

Note

If provided, DataTable2.divider_thickness has no effect.

specific_row_height #

specific_row_height: Number | None = None

Specific row height.

Falls back to DataTable2.data_row_height if not set.

Events#

on_double_tap #

on_double_tap: ControlEventHandler[DataRow2] | None = 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 #

on_secondary_tap: ControlEventHandler[DataRow2] | None = (
    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 #

on_secondary_tap_down: (
    ControlEventHandler[DataRow2] | None
) = 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 #

on_tap: EventHandler[TapEvent[DataRow2]] | None = None

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.