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
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Deprecated:
7.0.0 Deprecated
animateCollapseExpand. Usegrid.transition.toggleRegioninsteadSet to
falseto not use transitions when expanding or collapsing a sub gridHas a corresponding runtime animateCollapseExpand property.
-
This flag prevents dragging if set to
falsebut the collapse / expand buttons will still be functional.Has a corresponding runtime enableDragging property.
-
Set to
falseto hide the splitter's collapse/expand buttonsHas a corresponding runtime showSplitterButtons property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of RegionResize class, or subclass thereof.
-
Deprecated:
7.0.0 Deprecated
animateCollapseExpand. Usegrid.transition.toggleRegioninsteadSet to
falseto not use transitions when expanding or collapsing a sub gridHas a corresponding animateCollapseExpand config.
-
This flag prevents dragging if set to
falsebut the collapse / expand buttons will still be functional.Has a corresponding enableDragging config.
-
Set to
falseto hide the splitter's collapse/expand buttonsHas a corresponding showSplitterButtons config.
-
Identifies an object as an instance of RegionResize class, or subclass thereof.