React Data GridManualColumnFreeze
Description
This plugin allows to manually "freeze" and "unfreeze" a column using an entry in the Context Menu or using API.
You can turn it on by setting a Options#manualColumnFreeze property to true
.
Example
// Enables the plugin
manualColumnFreeze: true,
Options
manualColumnFreeze
Source codemanualColumnFreeze.manualColumnFreeze : boolean
The manualColumnFreeze
option configures the ManualColumnFreeze
plugin.
You can set the manualColumnFreeze
option to one of the following:
Setting | Description |
---|---|
true | Enable the ManualColumnFreeze plugin |
false | Disable the ManualColumnFreeze plugin |
Read more:
Default: undefined
Example
// enable the `ManualColumnFreeze` plugin
manualColumnFreeze: true,
Methods
disablePlugin
Source codemanualColumnFreeze.disablePlugin()
Disables the plugin functionality for this Handsontable instance.
enablePlugin
Source codemanualColumnFreeze.enablePlugin()
Enables the plugin functionality for this Handsontable instance.
freezeColumn
Source codemanualColumnFreeze.freezeColumn(column)
Freezes the specified column (adds it to fixed columns).
freezeColumn()
doesn't re-render the table,
so you need to call the render()
method afterward.
Param | Type | Description |
---|---|---|
column | number | Visual column index. |
isEnabled
Source codemanualColumnFreeze.isEnabled() ⇒ boolean
Checks if the plugin is enabled in the handsontable settings. This method is executed in Hooks#beforeInit
hook and if it returns true
then the ManualColumnFreeze#enablePlugin method is called.
unfreezeColumn
Source codemanualColumnFreeze.unfreezeColumn(column)
Unfreezes the given column (remove it from fixed columns and bring to it's previous position).
Param | Type | Description |
---|---|---|
column | number | Visual column index. |
updatePlugin
Source codemanualColumnFreeze.updatePlugin()
Updates the plugin's state.
This method is executed when updateSettings()
is invoked with any of the following configuration options: