From 81a067d4d80930571c071f50b8e7c44dd539e77f Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 8 Dec 2016 19:47:46 +0100 Subject: [PATCH] docs: modal widget --- .../widgets-specifics/containers.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/resources/docs/user-guide/widgets-specifics/containers.md b/resources/docs/user-guide/widgets-specifics/containers.md index 0d2e8ca9..f1e1a6ed 100644 --- a/resources/docs/user-guide/widgets-specifics/containers.md +++ b/resources/docs/user-guide/widgets-specifics/containers.md @@ -53,3 +53,26 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can - type: `array` - default: `[]` - usage: each element of the `array` must be a tab `object`. A panel cannot contain widgets and tabs simultaneously. + +---- + +## Modal + +Modals are buttons that turn into a fullscreen panels when enabled. They can be enabled via osc (1 to enable, 0 to disable). + +```js +{ + type:'modal', + // etc +} +``` + +#### `widgets` +- type: `array` +- default: `[]` +- usage: each element of the `array` must be a widget `object`. A modal cannot contain widgets and tabs simultaneously. + +#### `tabs` +- type: `array` +- default: `[]` +- usage: each element of the `array` must be a tab `object`. A modal cannot contain widgets and tabs simultaneously.