Class Table

All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLTableElement, Table>, ElementClassListMethods<HTMLTableElement, Table>, ElementConsumerMethods<HTMLTableElement, Table>, ElementContainerMethods<HTMLTableElement, Table>, ElementEventMethods<HTMLTableElement, Table>, ElementIdMethods<HTMLTableElement, Table>, ElementQueryMethods<HTMLTableElement>, HTMLElementAttributeMethods<HTMLTableElement, Table>, HTMLElementDataMethods<HTMLTableElement, Table>, HTMLElementStyleMethods<HTMLTableElement, Table>, HTMLElementVisibilityMethods<HTMLTableElement, Table>, IsElement<HTMLTableElement>, TypedBuilder<HTMLTableElement, Table>, Component, Modifiers.Compact<HTMLTableElement, Table>

A table is used to display large data sets that can be easily laid out in a simple grid with column headers.
See Also:
  • Method Details

    • table

      public static Table table()
    • table

      public static Table table(TableType type)
    • attach

      public void attach(MutationRecord mutationRecord)
      Specified by:
      attach in interface Attachable
    • addCaption

      public Table addCaption(TableCaption caption)
    • addHead

      public Table addHead(Thead head)
    • addBody

      public Table addBody(Tbody tbody)
    • add

      public Table add(Tbody tbody)
    • noBorders

      public Table noBorders()
    • noBorders

      public Table noBorders(boolean borders)
    • gridBreakpoint

      public Table gridBreakpoint(GridBreakpoint breakpoint)
    • selectionMode

      public Table selectionMode(SelectionMode selectionMode)
      Sets the selection mode for the table. If not set, the table does not support selection.
      Parameters:
      selectionMode - the SelectionMode that specifies how rows are selected in the table. Supported modes include:
      • single - Only a single item can be selected at any time.
      • multi - Multiple items can be selected simultaneously.
      If an unsupported mode is provided, the method will not update the current selection mode.
      Returns:
      the current Table instance to allow for method chaining.
    • treeViewGridBreakpoint

      public Table treeViewGridBreakpoint(TreeViewGridBreakpoint breakpoint)
    • that

      public Table that()
      Specified by:
      that in interface TypedBuilder<HTMLTableElement, Table>
    • ariaLabel

      public Table ariaLabel(String label)
    • onSingleSelect

      public Table onSingleSelect(SelectHandler<Tr> selectHandler)
    • onMultiSelect

      public Table onMultiSelect(MultiSelectHandler<Table,Tr> selectHandler)
    • reset

      public void reset()
    • select

      public void select(String identifier)
    • select

      public void select(String identifier, boolean selected)
    • select

      public void select(String identifier, boolean selected, boolean fireEvent)
    • select

      public void select(Tr item)
    • select

      public void select(Tr item, boolean selected)
    • select

      public void select(Tr item, boolean selected, boolean fireEvent)
    • selectAll

      public void selectAll()
    • selectAll

      public void selectAll(boolean fireEvent)
    • selectNone

      public void selectNone()
    • selectNone

      public void selectNone(boolean fireEvent)
    • selectedItems

      public List<Tr> selectedItems()
    • thead

      public Thead thead()
    • tbody

      public Tbody tbody()