From c448c49d2be04f164789ee5d1e321dc6912522f4 Mon Sep 17 00:00:00 2001 From: Kai Arrowood Date: Thu, 4 Apr 2024 11:11:36 -0400 Subject: [PATCH] feat(ktable): add column resize support [khcp-11161] (#2105) Add column resize support to `KTable` for [KHCP-11161](https://konghq.atlassian.net/browse/KHCP-11161). --- docs/components/table.md | 21 +- sandbox/pages/SandboxTable.vue | 1 + src/components/KTable/KTable.cy.ts | 18 +- src/components/KTable/KTable.vue | 377 ++++++++++++++++++++++------- src/types/table.ts | 2 + 5 files changed, 331 insertions(+), 88 deletions(-) diff --git a/docs/components/table.md b/docs/components/table.md index 54962a0f68..4c02ef8f9d 100644 --- a/docs/components/table.md +++ b/docs/components/table.md @@ -43,6 +43,16 @@ See [the State section](#error) about `hasError` See [the State section](#loading) about `isLoading` +### resizeColumns + +Allow table column width to be resizable. Adjusting a column's width will trigger an `@update:table-preferences` event. + + + +```html + +``` + ### disablePaginationPageJump Set this to `true` to limit pagination navigation to `previous` / `next` page only. @@ -749,7 +759,7 @@ Using a `KPop` inside of a clickable row requires some special handling. Non-cli