From 1ab5291f6382491693b2a2a10138851ed57d0fac Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 4 Apr 2021 11:07:53 +0200 Subject: [PATCH] docs: update --- resources/docs/docs/widgets/properties-reference.md | 12 +++++++++++- src/client/widgets/containers/fragment.js | 2 +- src/client/widgets/frames/image.js | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index fb838d7c..97b9fb06 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -297,6 +297,16 @@ |
widgetId#
| `string` | "" | `id` of the widget to clone | |
props#
| `object` | \{} | Cloned widget's properties to override | +??? api "
fragment#
" + Embedded session or fragment file with overridable properties. + + === "fragment" + + | property | type |default | description | + | --- | --- | --- | --- | + |
file#
| `string` | "" | Fragment file path (relative to the session or theme file location by default, falling back to absolute path) | + |
props#
| `object` | \{} | Fragment widget's properties to override | + ??? api "
matrix#
" Generic matrix for creating rows/columns of widgets. @@ -490,7 +500,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
value#
| `string` | "" | - File `url` or `path` (relative to the session file location by default, falling back to absolute path)
- Base64 encoded image : `data:image/...` | + |
value#
| `string` | "" | - File `url` or `path` (relative to the session or theme file location by default, falling back to absolute path)
- Base64 encoded image : `data:image/...` | ## Graphs ??? api "
plot#
" diff --git a/src/client/widgets/containers/fragment.js b/src/client/widgets/containers/fragment.js index aff3d833..d7d0f59e 100644 --- a/src/client/widgets/containers/fragment.js +++ b/src/client/widgets/containers/fragment.js @@ -21,7 +21,7 @@ class Fragment extends Container() { var defaults = super.defaults().extend({ class_specific: { - file: {type: 'string', value: '', help: 'Fragment file path'}, + file: {type: 'string', value: '', help: 'Fragment file path (relative to the session or theme file location by default, falling back to absolute path)'}, props: {type: 'object', value: {}, help: 'Fragment widget\'s properties to override'}, }, value: null, diff --git a/src/client/widgets/frames/image.js b/src/client/widgets/frames/image.js index 005076d8..2c55e659 100644 --- a/src/client/widgets/frames/image.js +++ b/src/client/widgets/frames/image.js @@ -28,7 +28,7 @@ module.exports = class Image extends StaticProperties(Widget, {bypass: true}) { }, value: { value: {type: 'string', value: '', help: [ - '- File `url` or `path` (relative to the session file location by default, falling back to absolute path)', + '- File `url` or `path` (relative to the session or theme file location by default, falling back to absolute path)', '- Base64 encoded image : `data:image/...`' ]} },