From 548355e7d3578a86c9f365e9bf177278c9b3d59f Mon Sep 17 00:00:00 2001 From: megatron0000 Date: Mon, 30 Oct 2023 14:33:17 -0400 Subject: [PATCH] Feat: shadow dom, fixes issue #889 (#890) * feat: add `shadowRoot` option for grids inside a shadow DOM tree * add shadow DOM example --- examples/example1a-shadow-dom.html | 111 +++++++++++++++++++++++++++++ examples/index.html | 1 + src/models/gridOption.interface.ts | 3 + src/slick.grid.ts | 8 +-- 4 files changed, 119 insertions(+), 4 deletions(-) create mode 100644 examples/example1a-shadow-dom.html diff --git a/examples/example1a-shadow-dom.html b/examples/example1a-shadow-dom.html new file mode 100644 index 00000000..0f35a870 --- /dev/null +++ b/examples/example1a-shadow-dom.html @@ -0,0 +1,111 @@ + + + + + + SlickGrid example 1a: Basic grid inside a shadow DOM + + + + + + + + +
+
+
+
+

+ + Demonstrates: +

+
+
    +
  • how to load a grid inside a shadow DOM tree
  • +
+

View Source:

+ +
+ + + + + + + + + + + diff --git a/examples/index.html b/examples/index.html index 049e75d9..393a1a7b 100644 --- a/examples/index.html +++ b/examples/index.html @@ -52,6 +52,7 @@

Basic Use