double click spliter to resize column width
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
grid.allowHtml = true;
|
||||
grid.height = 0;
|
||||
grid.columns = [
|
||||
{ key: 'c1', caption: 'column 1' },
|
||||
{ key: 'c1', caption: 'column 122222222311111111111111111' },
|
||||
{ key: 'c2', caption: '选择', allcheck: true, type: Grid.ColumnTypes.Checkbox, enabled: 'enabled' },
|
||||
{
|
||||
key: 'c2a',
|
||||
@@ -60,9 +60,8 @@
|
||||
{ key: 'c3', caption: 'column 3', width: 90 },
|
||||
{ key: 'c4', caption: 'Note', type: Grid.ColumnTypes.Input }
|
||||
];
|
||||
grid.cellClicked = (rId, cId) => {
|
||||
console.log(`row (${rId}), column (${cId}) clicked.`);
|
||||
};
|
||||
grid.columnChanged = (type, index, value) => console.log(`column (${index}), ${type}, ${value}`);
|
||||
grid.cellClicked = (rId, cId) => console.log(`row (${rId}), column (${cId}) clicked.`);
|
||||
grid.rowDblClicked = (rId) => console.log(`row (${rId}) double clicked.`);
|
||||
grid.cellDblClicked = (rId, cId) => console.log(`row (${rId}), column (${cId}) double clicked.`);
|
||||
grid.init();
|
||||
|
Reference in New Issue
Block a user