Closed msaus closed 6 years ago
I could solve myself like following.
$('#ranking-detail'+id).bind('dynatable:init', function(e, dynatable) {
}).dynatable({
features: {
paginate: false,
search: false,
perPageSelect: false,
recordCount: false
},
readers:{
'順位' : function(el, record){
return parseInt(el.innerHTML);
},
'数' : function(el, record){
return parseInt(el.innerHTML);
},
'ランキング' : function(el, record){
return parseInt(el.innerHTML);
},
},
writers: {
'ランキング': function(record) {
return record['ランキング'] ? record['ランキング'].toString() + '位' : 'n/a';
},
'順位': function(record) {
return record['順位’] ? record['順位'].toString() + '位' : 'n/a';
}
}
});
Possibly, you need a doc for this.
Hello forks,
It seems to me that sort function is not working at all.
jquery 1.11.1 dynatable 0.3.1
Dose anyone know how to fix that?