Skip to content

Commit

Permalink
[#1608] grid resize column event (#1609)
Browse files Browse the repository at this point in the history
* [#1608] Grid > Column resize event 추가

* [#1608] Grid > Column resize event arg 변경
  • Loading branch information
jinbekim authored Feb 15, 2024
1 parent 001010a commit 07a653e
Show file tree
Hide file tree
Showing 6 changed files with 463 additions and 451 deletions.
2 changes: 2 additions & 0 deletions docs/views/grid/api/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@
| page-change | event | page 정보가 변경되었을 때 호출된다. |
| sort-column | event | column을 기준으로 정렬이 변경되었을 때 호출된다. |
| expand-row | event, row, isExpand, index | row가 확장되었을 때 호출된다. |
| update:expanded | rows | row가 확장되었을 때 호출된다. |
| resize:column | column | column의 width가 resize 됐을때 호출된다. |
5 changes: 5 additions & 0 deletions docs/views/grid/example/RowDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
}
}"
@expand-row="onExpandRow"
@resize:column="onResizeColumn"
>
<template #rowDetail="{ item }">
<row-detail-content
Expand Down Expand Up @@ -101,6 +102,9 @@ export default {
});
expandedRowText.value = result;
};
const onResizeColumn = (column) => {
console.log('[onResizeColumn]', column);
};
pushData();
Expand All @@ -116,6 +120,7 @@ export default {
expandedRowsMV,
expandedRowText,
onExpandRow,
onResizeColumn,
};
},
};
Expand Down
Loading

0 comments on commit 07a653e

Please sign in to comment.