From 5aa9b031961c062a922b850d27c3758de6b2a3fa Mon Sep 17 00:00:00 2001 From: Paul Pestov <10750176+paulpestov@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:30:51 +0100 Subject: [PATCH] docs: add config builder page to demo (#564) --- README.md | 2 +- examples/ahiqar-arabic-karshuni.html | 2 +- examples/ahiqar-syriac.html | 2 +- examples/config-builder/index.html | 29 ++ examples/config-builder/js/confetti.js | 28 ++ examples/config-builder/js/form-builder.js | 495 +++++++++++++++++++++ examples/config-builder/js/script.js | 228 ++++++++++ examples/css/config-builder-style.css | 187 ++++++++ examples/css/pico.min.css | 4 + examples/{ => css}/style.css | 4 + examples/gfl.html | 2 +- examples/icons/icons.js | 66 +++ examples/icons/index.js | 3 + examples/index.html | 4 +- 14 files changed, 1050 insertions(+), 6 deletions(-) create mode 100644 examples/config-builder/index.html create mode 100644 examples/config-builder/js/confetti.js create mode 100644 examples/config-builder/js/form-builder.js create mode 100644 examples/config-builder/js/script.js create mode 100644 examples/css/config-builder-style.css create mode 100644 examples/css/pico.min.css rename examples/{ => css}/style.css (97%) create mode 100644 examples/icons/icons.js create mode 100644 examples/icons/index.js diff --git a/README.md b/README.md index dbec76e3..cceefef1 100644 --- a/README.md +++ b/README.md @@ -296,9 +296,9 @@ There are options to | panels | PanelConfig[] | ↓ | Defines an array of panel objects. The panels will appear in the same order. | | panels[i].label | String | `Panel i` | Sets the label which appears in the panel header. If there is only one view in the panel then the view label will be displayed instead. Translatable. | | panels[i].views | ViewConfig[] | ↓ | Defines an array of views inside of a panel. If there are multiple views, we display them in tabs. If there is only one view we omit the tabs and display the view directly inside the panel. | +| panels[i].width | Number | 1 | Defines a width multiplier to a panel default width. Values between 1 and 10 are allowed. Float values allowed. Causes horizontal overflow. Ignored on mobile screens since the default width takes the whole screen width. | | panels[i].views[j].id | String | `view-j` | Unique identifier for the view across the app. | | panels[i].views[j].label | String | `View j` | Sets the label which appears in the tab header. If there is only one view then this label will be displayed as panel header label. Translatable. | -| panels[i].views[j].width | Number | 1 | Defines a width multiplier to a panel default width. Values between 1 and 10 are allowed. Float values allowed. Causes horizontal overflow. Ignored on mobile screens since the default width takes the whole screen width. | | panels[i].views[j].default | Boolean | `false` | Specifies whether this view should be visible at the initial start of the app. If no `default` keys provided on views or all `default` keys are set to `false`, then the first view will be considered as default. | | panels[i].views[j].connector | Object | ↓ | Defines which view component and its options. Each view can have its own arbitrary config options. | | panels[i].views[j].connector.id | Number | null | Defines the component id which will be rendered dynamically for this view. See view connectors. | diff --git a/examples/ahiqar-arabic-karshuni.html b/examples/ahiqar-arabic-karshuni.html index 71d62601..8d29b909 100644 --- a/examples/ahiqar-arabic-karshuni.html +++ b/examples/ahiqar-arabic-karshuni.html @@ -7,7 +7,7 @@ - +