Column Configuration for Plugins
Column Configuration for Plugins
I'm working on a plugin for inline editing. Where is the best place to store column-level configuration for plugins? For example, I've thought about adding properties to the datatables column definition (much the same way as search and ordering options). Is this a good way to do this sort of thing? Or is there a better way?
[code]
// define the datatable columns (editable and editableConfig properties are used by the plugin)
var columns = [
{
"label": "Budget"
"data": "budget",
"type": "number",
"editable": true
"editableConfig": { ... }
}
]
[/code]
[code]
// define the datatable columns (editable and editableConfig properties are used by the plugin)
var columns = [
{
"label": "Budget"
"data": "budget",
"type": "number",
"editable": true
"editableConfig": { ... }
}
]
[/code]
This discussion has been closed.