修改说明文档
This commit is contained in:
57
README.md
57
README.md
@@ -1,40 +1,45 @@
|
|||||||
mobile-fixed-columns-table
|
mobile-fixed-columns-table(v1.0 2013-07-04)
|
||||||
====================
|
====================
|
||||||
在移动平台上(Android/iOS...)可用的固定列/表头的表格组件
|
在移动平台上(Android/iOS...)可用的固定列/表头的表格组件
|
||||||
|
<img src="inspiration/img/preview-pc-browser.jpg" height="387" width="523">
|
||||||
|
|
||||||
测试过的手机
|
测试过的手机
|
||||||
====================
|
--------------------
|
||||||
* 小米1
|
* 小米1
|
||||||
* Note2(N7100)
|
* Note2(N7100)
|
||||||
* GT-I8552
|
* GT-I8552
|
||||||
|
|
||||||
使用方法
|
使用方法
|
||||||
====================
|
--------------------
|
||||||
// 至少需要的参数
|
```JavaScript
|
||||||
$('#table').mobileFixedColumnsTable({ // 请参考DataTables的配置
|
// 至少需要的参数
|
||||||
'sScrollY': '300px',
|
$('#table').mobileFixedColumnsTable({ // 请参考DataTables的配置
|
||||||
'sScrollX': '100%',
|
'sScrollY': '300px',
|
||||||
'bScrollCollapse': true,
|
'sScrollX': '100%',
|
||||||
});
|
'bScrollCollapse': true,
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
// 更多的配置项
|
```JavaScript
|
||||||
$('#table').mobileFixedColumnsTable({
|
// 更多的配置项
|
||||||
'sScrollY': '300px',
|
$('#table').mobileFixedColumnsTable({
|
||||||
'sScrollX': '100%',
|
'sScrollY': '300px',
|
||||||
'bScrollCollapse': true,
|
'sScrollX': '100%',
|
||||||
'oLanguage': {
|
'bScrollCollapse': true,
|
||||||
'sInfo': ''
|
'oLanguage': {
|
||||||
|
'sInfo': ''
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
fixedColumnsOptions: { // 请参考DataTables的FixedColumns的配置
|
||||||
|
iLeftColumns: 2
|
||||||
|
},
|
||||||
|
scrollerOptions: { // 请参考iScroll的配置
|
||||||
|
onScrollMove: function() {
|
||||||
|
console.log(this, arguments);
|
||||||
}
|
}
|
||||||
}, {
|
}
|
||||||
fixedColumnsOptions: { // 请参考DataTables的FixedColumns的配置
|
});
|
||||||
iLeftColumns: 2
|
```
|
||||||
},
|
|
||||||
scrollerOptions: { // 请参考iScroll的配置
|
|
||||||
onScrollMove: function() {
|
|
||||||
console.log(this, arguments);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
使用效果
|
使用效果
|
||||||
====================
|
====================
|
||||||
|
|||||||
BIN
inspiration/img/preview-pc-browser.jpg
Normal file
BIN
inspiration/img/preview-pc-browser.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
Reference in New Issue
Block a user