DataTableModel<T> class
A hybrid interactive data table model.
Combines a search input, a paginated table, and fuzzy filtering.
- Inheritance
-
- Object
- Model
- ViewComponent
- DataTableModel
Constructors
-
DataTableModel({required List<
T> items, required List<Column> columns, required List<String> rowBuilder(T), String title = '', String placeholder = 'Type to filter...', String noResultsText = 'No matching rows found', bool showTitle = true, bool showHelp = true, int pageSize = 10, DataTableStyles? styles})
Properties
- currentPage → int
-
Current page number (0-based). Exposed for testing.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- noResultsText → String
-
final
- placeholder → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showHelp → bool
-
final
- showTitle → bool
-
final
- styles → DataTableStyles
-
final
- tableCursor → int
-
Current row cursor within the visible page. Exposed for testing.
no setter
-
tableRows
→ List<
List< String> > -
The rows currently shown in the table. Exposed for testing.
no setter
- title → String
-
final
Methods
-
init(
) → Cmd? -
Returns an optional command to execute on program startup.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Msg msg) → (DataTableModel< T> , Cmd?) -
Updates the component state in response to a message.
override
-
view(
) → String -
Renders the current model state for display.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited