From 393147b6d54949085bf65a65a750db6fe032da8d Mon Sep 17 00:00:00 2001 From: Hawk Ticehurst Date: Sun, 9 Jul 2023 12:48:05 -0700 Subject: [PATCH 1/2] Add editable data grid section to docs --- src/data-grid/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/data-grid/README.md b/src/data-grid/README.md index 5c51b680..69eed23d 100644 --- a/src/data-grid/README.md +++ b/src/data-grid/README.md @@ -302,3 +302,11 @@ basicGrid.columnDefinitions = [ { columnDataKey: "ColumnKey4", title: "Custom Title" }, ]; ``` + +## Editable Data Grid + +Interactive/editable data grids are a highly requested feature in the Webview UI Toolkit. + +By default, the toolkit and in particular [FAST](https://www.fast.design/) (the underlying framework that the toolkit uses) **do not** offer any first-party APIs for enabling interactivity or editability in data grids. Additionally, since FAST owns the underlying data grid implementation, first-party support for interactivity will eventually need to come from them. + +With that said, workaround solutions are possible and a reference implementation for making the `vscode-data-grid` component editable is [available as a sample extension](https://github.com/microsoft/vscode-webview-ui-toolkit-samples/tree/main/default/editable-data-grid). \ No newline at end of file From e5499713403b0a9ffd6cbfed22b055964fd0bacc Mon Sep 17 00:00:00 2001 From: Hawk Ticehurst Date: Sun, 9 Jul 2023 12:53:26 -0700 Subject: [PATCH 2/2] Fix formatting errors --- src/data-grid/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data-grid/README.md b/src/data-grid/README.md index 69eed23d..ada6fb51 100644 --- a/src/data-grid/README.md +++ b/src/data-grid/README.md @@ -307,6 +307,6 @@ basicGrid.columnDefinitions = [ Interactive/editable data grids are a highly requested feature in the Webview UI Toolkit. -By default, the toolkit and in particular [FAST](https://www.fast.design/) (the underlying framework that the toolkit uses) **do not** offer any first-party APIs for enabling interactivity or editability in data grids. Additionally, since FAST owns the underlying data grid implementation, first-party support for interactivity will eventually need to come from them. +By default, the toolkit and in particular [FAST](https://www.fast.design/) (the underlying framework that the toolkit uses) **do not** offer any first-party APIs for enabling interactivity or editability in data grids. Additionally, since FAST owns the underlying data grid implementation, first-party support for interactivity will eventually need to come from them. -With that said, workaround solutions are possible and a reference implementation for making the `vscode-data-grid` component editable is [available as a sample extension](https://github.com/microsoft/vscode-webview-ui-toolkit-samples/tree/main/default/editable-data-grid). \ No newline at end of file +With that said, workaround solutions are possible and a reference implementation for making the `vscode-data-grid` component editable is [available as a sample extension](https://github.com/microsoft/vscode-webview-ui-toolkit-samples/tree/main/default/editable-data-grid).