FdcGridOptions class
Behavioral and layout options for an FdcGrid.
These options configure interaction and geometry defaults without owning dataset state or column definitions.
Constructors
- FdcGridOptions({bool readOnly = false, bool allowColumnSorting = true, bool allowColumnFiltering = true, bool allowColumnReordering = true, bool allowColumnResize = true, bool autoEdit = true, bool confirmDelete = true, double defaultColumnWidth = fallbackDefaultColumnWidth, double rowHeight = fallbackRowHeight, FdcGridVerticalScrollMode verticalScrollMode = FdcGridVerticalScrollMode.recordScroll, FdcGridHorizontalScrollMode horizontalScrollMode = FdcGridHorizontalScrollMode.columnSnap, FdcGridScrollbars scrollbars = FdcGridScrollbars.both})
-
Creates a FdcGridOptions.
const
Properties
- allowColumnFiltering → bool
-
Controls whether column filter UI actions are available in grid menus.
final
- allowColumnReordering → bool
-
Enables pointer-driven column reordering.
final
- allowColumnResize → bool
-
Enables interactive column width resizing.
final
- allowColumnSorting → bool
-
Enables interactive column sorting through headers and column menus.
final
- autoEdit → bool
-
Starts cell editing automatically when editable content receives direct input.
final
- confirmDelete → bool
-
When true, Ctrl+Delete asks for confirmation before deleting the
current record from the dataset.
final
- defaultColumnWidth → double
-
Fallback width used by columns that do not define an explicit width.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- horizontalScrollMode → FdcGridHorizontalScrollMode
-
Controls horizontal column scrolling behavior.
final
- readOnly → bool
-
Prevents the grid from starting edit, insert, append, or delete operations.
final
- resolvedDefaultColumnWidth → double
-
Layout-safe fallback column width.
no setter
- resolvedRowHeight → double
-
Layout-safe row height.
no setter
- rowHeight → double
-
Fixed height used by data rows.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollbars → FdcGridScrollbars
-
Controls which scrollbar thumbs are rendered by the grid.
final
- showHorizontalScrollbar → bool
-
Whether the configured scrollbar mode includes a horizontal thumb.
no setter
- showVerticalScrollbar → bool
-
Whether the configured scrollbar mode includes a vertical thumb.
no setter
- verticalScrollMode → FdcGridVerticalScrollMode
-
Controls vertical row scrolling behavior.
final
Methods
-
copyWith(
{bool? readOnly, bool? allowColumnSorting, bool? allowColumnFiltering, bool? allowColumnReordering, bool? allowColumnResize, bool? autoEdit, bool? confirmDelete, double? defaultColumnWidth, double? rowHeight, FdcGridVerticalScrollMode? verticalScrollMode, FdcGridHorizontalScrollMode? horizontalScrollMode, FdcGridScrollbars? scrollbars}) → FdcGridOptions - Creates a copy with selected values replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void - Validates values that cannot be enforced by a const constructor in release builds. The grid invokes this before using the configuration.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
resolveDefaultColumnWidth(
double value) → double -
Resolves a safe default column width from
value. -
resolveRowHeight(
double value) → double -
Resolves a safe row height from
value. -
validateDimensions(
{required double defaultColumnWidth, required double rowHeight}) → void - Validates grid dimensions independently of constructor assertions.
Constants
- fallbackDefaultColumnWidth → const double
- Default value for fallback default column width.
- fallbackRowHeight → const double
- Default value for fallback row height.
- minimumDefaultColumnWidth → const double
- Default value for minimum default column width.
- minimumRowHeight → const double
- Default value for minimum row height.