tiny issue fix.
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user