forked from 0x2620/oxjs
add 'setColumnTitle' public method to Ox.TableList; add 'OxColumnStatus' CSS rules
This commit is contained in:
parent
e3e3540ef3
commit
3973fc496a
2 changed files with 17 additions and 0 deletions
|
|
@ -1059,6 +1059,14 @@ Ox.TableList = function(options, self) {
|
|||
removeColumn(id);
|
||||
};
|
||||
|
||||
that.setColumnTitle = function(id, title) {
|
||||
var index = getColumnIndexById(id);
|
||||
self.options.columns[index].title = title;
|
||||
if (self.options.columns[index].visible) {
|
||||
self.$titles[getColumnPositionById(id)].html(title);
|
||||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
resizeColumn <f> resizeColumn
|
||||
(id, width) -> <o> resize column id to width
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue