Render the title of a show that has started with a different style (bold text)
This commit is contained in:
parent
599d50bf25
commit
9d35f610df
1 changed files with 12 additions and 1 deletions
|
@ -109,12 +109,23 @@ tvheadend.epg = function() {
|
|||
}
|
||||
}
|
||||
|
||||
function renderTitle(value, meta, record, rowIndex, colIndex, store){
|
||||
var now = new Date;
|
||||
var start = record.get('start');
|
||||
|
||||
if(now.getTime() > start.getTime()){
|
||||
meta.attr = 'style="font-weight:bold;"';
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
var epgCm = new Ext.grid.ColumnModel([
|
||||
{
|
||||
width: 250,
|
||||
id:'title',
|
||||
header: "Title",
|
||||
dataIndex: 'title'
|
||||
dataIndex: 'title',
|
||||
renderer: renderTitle
|
||||
},{
|
||||
width: 100,
|
||||
id:'start',
|
||||
|
|
Loading…
Add table
Reference in a new issue