ColumnRename
Allows user to rename columns by either right-clicking column header or using keyboard shortcuts when column header is focused.
To get notified about column renaming listen to change event on columns store.
Right click column header and click "Rename" or press F2 when column header is focused:
Column rename
//<code-header>
fiddle.title = 'Column rename';
//</code-header>
const grid = new Grid({
appendTo : targetElement,
// makes grid as high as it needs to be to fit rows
autoHeight : true,
features : {
columnRename : true
},
data : DataGenerator.generateData(5),
columns : [
{ field : 'firstName', text : 'First name', flex : 1 },
{ field : 'surName', text : 'Surname', flex : 1 },
{ type : 'date', field : 'start', text : 'Start', flex : 1 },
{ type : 'date', field : 'finish', text : 'Finish', flex : 1 }
]
}); *
This feature is disabled by default.
Keyboard shortcuts
This feature has the following default keyboard shortcuts:
| Keys | Action | Action description |
|---|---|---|
F2 |
startEdit | Starts editing focused column header text |
Please note that
Ctrl is the equivalent to Command and Alt
is the equivalent to Option for Mac usersFor more information on how to customize keyboard shortcuts, please see our guide
Configs
10
Configs
10Other
keyMap: Object<String, KeyMapConfig>
See Keyboard shortcuts for details
Misc
bubbleEventsEvents
callOnFunctionsEvents
clientInstancePlugin
localeClassLocalizable
localizableLocalizable
localizablePropertiesLocalizable
Properties
15
Properties
15Common
disabledInstancePlugin
Class hierarchy
Identifies an object as an instance of ColumnRename class, or subclass thereof.
Identifies an object as an instance of ColumnRename class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable
Other
Functions
28
Functions
28Configuration
Events
detachListenersBase
Misc
animatePropertyBase
callbackBase
doDisableInstancePlugin
downloadTestCaseBase
resolveCallbackBase
updateLocalizationLocalizable
Other
addListenerEvents
hasListenerEvents
onEvents
relayAllEvents
removeAllListenersEvents
removeListenerEvents
resumeEventsEvents
suspendEventsEvents
triggerEvents
unEvents
Events
5
Events
5Event handlers
5
Event handlers
5Typedefs
1
Typedefs
1BryntumListenerConfigEvents