add 'setColumnTitle' public method to Ox.TableList; add 'OxColumnStatus' CSS rules

This commit is contained in:
rlx 2012-12-16 16:19:10 +00:00
parent e3e3540ef3
commit 3973fc496a
2 changed files with 17 additions and 0 deletions

View file

@ -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;

View file

@ -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