[VUE] It possible change the column width on click?
Posted: Tue Jun 08, 2021 2:23 pm
It is possible to change the column width on click?
It is possible to change the column width on click?
Sure, columns is just a simple store with normal records:
grid.columns.first.width = 200
Where it can be applied?
Well, you add it where you want the column width to change. For demonstration, you can use advanced
grid Vue demo and replace content of the addRecord
handler in components/Grid.vue
with:
addRecord() {
const grid = this.$refs.grid.instance;
grid.columns.first.width = 400;
}
Now, when you click Add Record the first column changes width.
It has worked for me. Thank you!