v7.3.0

RegionResize
Feature

Makes the splitter between grid sections draggable, to let users resize, and collapse/expand the sections.

// enable RegionResize
const grid = new Grid({
  features: {
    regionResize: true
  }
});

If you use two regions, and you would like to prevent resizing/expanding the first (left section, rightmost in RTL), set maxWidth and width to the same value.

// enable RegionResize
const grid = new Grid({
  features: {
    regionResize: true
  },
  subGridConfigs : {
        locked : {
            width : 400,
            // prevent making the left section wider than 400px
            maxWidth : 400
        },
        normal : {
            flex : 1
        }
    }
});

This feature is disabled by default.

See also

  • SubGrid - The SubGrid sections being resized
  • Grid - The grid component
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

    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-grid-splitter-zindex Splitter z-index
    --b-region-resize-button-color Color for the expand / collapse buttons showed on hover
    --b-region-resize-splitter-color Splitter color
    --b-region-resize-splitter-width Splitter width
    Collapsed
    --b-region-resize-splitter-collapsed-width Splitter width when collapsed
    Hovered
    --b-region-resize-button-hover-color Color for the expand / collapse buttons showed on hover
    --b-region-resize-splitter-hover-color Splitter color when hovered
    --b-region-resize-splitter-width-hover Splitter width when hovering (also used as the invisible interactable area width)
    Touched
    --b-region-resize-splitter-touch-width-hover Splitter width when touched (also used as the invisible touch area width)
    id: regionResize

    Source path

    Grid/feature/RegionResize.js

    Demo

    examples/features

    Contents