v7.3.0

ColumnReorder
Feature

Allows user to reorder columns by dragging headers. Click and drag a column header to move it to a new position. Visual feedback shows the drop target while dragging. To get notified about column reorder, listen to the change event on the columns store.

This feature is enabled by default.

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class

Properties

Properties are getters/setters or publicly accessible variables on this class

Functions

Functions are methods available for calling on the class
    • init( )
      private

      Initialize drag & drop (called from render)

    • onDrop( )
      private

      Handle drop

    • onInternalPaint( )
      private

      Initializes this feature on grid paint.

    • onInvalidDrop( )
      private

      Handle invalid drop

    • renderContents( )
      private

      Updates DragHelper with updated headers when grid contents is rerendered

    Events

    Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

    Event handlers

    Event handlers are callbacks called as a result of certain actions in this class

    CSS variables

    CSS variables that can be set to adjust appearance
    Name Description
    --b-column-reorder-invalid-color Color used on the drag proxy to highlight invalid drop locations
    id: columnReorder

    Source path

    Grid/feature/ColumnReorder.js

    Demo

    examples/columns

    Contents