tiny issue fix.

This commit is contained in:
2023-04-04 23:26:46 +08:00
parent fa1b7df4a0
commit adb74b7441
7 changed files with 130 additions and 27 deletions

View File

@ -34,6 +34,7 @@
}
};
// grid.readonly = true;
grid.allowHtml = true;
grid.height = 0;
grid.columns = [
@ -59,7 +60,16 @@
},
{ key: 'c3', caption: 'column 3', width: 90 },
{ key: 'c4', caption: 'Note', type: Grid.ColumnTypes.Input },
{ key: 'c5', type: Grid.ColumnTypes.Icon, text: 'times', tooltip: 'Delete' }
{
key: 'c5',
type: Grid.ColumnTypes.Icon,
enabled: 'enabled',
text: 'times',
tooltip: 'Delete',
events: {
onclick() { console.log('deleted', this) }
}
}
];
grid.columnChanged = (type, index, value) => console.log(`column (${index}), ${type}, ${value}`);
grid.cellClicked = (rId, cId) => console.log(`row (${rId}), column (${cId}) clicked.`);
@ -80,7 +90,7 @@
</script>
<style type="text/css">
#grid-sample {
height: 400px;
/* height: 400px; */
}
#grid-sample>.grid {