Skip to content

MDataTableStyle

Stanislav Podolia edited this page Jun 30, 2020 · 4 revisions

Flow Wiki

MDataTableStyle

  • MListSelection

    • enabled : Transform<bool>
    • multiple : bool
    • toggle : bool
    • selected : DynamicBehaviour<[ int ]>
  • MListSelectionEnabled

  • MPagination
    Style adds footer with pagination

    • current : DynamicBehaviour<int>
    • rowsPerPage : [ int ]
  • MPaginationAutoScaling
    Style inspects the available vertical space, and defines the number of rows accordingly -
    assuming fixed height rows (48 dp default and 32 dp for MCondensed style)

  • MCondensed
    Style for slimmer rows (height = 32 dp)

    • condensed : bool
  • MSortingDefault
    Style for default sorting: columnIndex, isAscending

    • sorting : DynamicBehaviour<MSortingParam>
  • MFullWidth
    Style for expand space between columns to full width

  • MFullWidthAdvanced
    Style for increase width of columns (a multiple of 8), keeping the ratio of widths, to full width

  • MInCard
    Adds elevation and background to table

  • MOnListClick

    • enabled : Transform<bool>
    • onClick : (int) -> void
  • MMinTableHeigth
    Style to define a minimum height

    • height : double
  • MSingleSelection
    Helpers for easier selection, for advanced stuff use MListSelection

    • selected : DynamicBehaviour<int>
  • MMultiSelection

    • selected : DynamicBehaviour<Set<int>>
  • MSelectedBackgroundStyle
    MSelectedX styles works only with MListSelection() state

  • MCurrentPage
    Allows inspect or change page number

    • page : DynamicBehaviour<int>
  • MGoToIndex
    Set number of row to show

    • index : DynamicBehaviour<int>
  • MHeaderActions
    Adds an additional header to table or replaces current. Avoid using height fillers in actions when MPaginationAutoScaling is present.

  • MCheckBoxSelection

  • MRowHeight
    Style for rows with a specified height

    • height : double
  • MHeaderRowHeight

    • height : double
  • MHoverEnabled
    Disable hover

  • MClickEnabled
    Disable any mouse interaction without making component disabled

  • MRowSpacing

    • spacing : double
  • MNoSeparators

  • MNoFooter
    Removes footer area. Ignored if pagination is on.

  • MHideAutoPaginationFooter
    Hides footer in case of MPaginationAutoScaling and all rows are on one page.

  • MExpandRow
    Enabled or disable row expansion

  • TScrollEnabled

  • TScrollPosition

    • position : DynamicBehaviour<Point>
  • MListReorder

    • order : DynamicBehaviour<[ int ]>
    • enabled : Transform<bool>
  • MListReorderHideIcon
    Hide "drag_handle" icon which added automatically by MListReorder style

  • MHeaderStyle
    Style to define DataTable headers background and text style. textStyleSelected is useless, it is here for compability reasons.

  • MFixedRow
    Add this cols as a first fixed row

  • MListSorted
    Returns new sequence of rows indexes if data was sorted

    • newOrderCallback : ([ int ]) -> void
  • MRowBackgroundStyle
    Add background for each row by row number (zero based)

  • MExternalSort
    For external sorting (SQL sorting for example). Turns off sorting in MDataTable but keeps column header sorting icon.
    Sorting params (columnIndex, ascending) use from MSortingDefault

  • MWidthByContent
    Sets column width by content width. Overrides "width" parameter and MMaxWidth.

  • MNoCrop

  • MShowRowNumbers
    Adds a column to the left with row numbers

  • MRowsPerPage
    Only inspects current rows per page

    • rowsPerPage : DynamicBehaviour<int>
  • MUpdateSorting
    Updates sorting every n ms

    • delay : int
  • MDataTableInnerScroll

  • MEnabled
    Disables inner clickable materials in most of the components

Clone this wiki locally