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
|
@ -1351,6 +1351,15 @@ Lists
|
|||
height: 10px;
|
||||
margin: 1px 0 0 -1px;
|
||||
}
|
||||
.OxTableList .OxHead .OxHeadCell .OxColumnStatus {
|
||||
position: absolute;
|
||||
right: 45px;
|
||||
top: 2px;
|
||||
font-size: 9px;
|
||||
}
|
||||
.OxTableList .OxHead .OxHeadCell.OxSelected .OxTitle .OxColumnStatus {
|
||||
right: 60px;
|
||||
}
|
||||
.OxTableList .OxHead .OxOrder {
|
||||
float: left;
|
||||
display: none;
|
||||
|
|
|
@ -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…
Reference in a new issue