add support to resize or reorder.

This commit is contained in:
2023-04-04 15:30:38 +08:00
parent de1ba82970
commit a2fbb7e78a
3 changed files with 368 additions and 72 deletions

View File

@ -38,10 +38,10 @@
grid.height = 0;
grid.columns = [
{ key: 'c1', caption: 'column 1' },
{ key: 'c2', caption: 'column 2', allcheck: true, type: Grid.ColumnTypes.Checkbox, enabled: 'enabled' },
{ key: 'c2', caption: '选择', allcheck: true, type: Grid.ColumnTypes.Checkbox, enabled: 'enabled' },
{
key: 'c2a',
caption: 'column 2 a',
caption: '下拉',
type: Grid.ColumnTypes.Dropdown,
source: [
{ value: 'off', text: 'Off' },
@ -53,7 +53,7 @@
},
{
key: 'c2b',
caption: 'column 2 b',
caption: '自定义',
type: statusCol,
enabled: 'enabled'
},
@ -62,7 +62,6 @@
];
grid.cellClicked = (rId, cId) => {
console.log(`row (${rId}), column (${cId}) clicked.`);
return false;
};
grid.rowDblClicked = (rId) => console.log(`row (${rId}) double clicked.`);
grid.cellDblClicked = (rId, cId) => console.log(`row (${rId}), column (${cId}) double clicked.`);