Skip to content
Snippets Groups Projects
Verified Commit 0e7fb004 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

feat: new comprehensive options display #213

parent dc7d1cb5
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,8 @@ class ContextError extends Popper { ...@@ -118,6 +118,8 @@ class ContextError extends Popper {
classes: { classes: {
button: "monster-theme-error-2", button: "monster-theme-error-2",
}, },
display: "inline-block"
}); });
} }
......
...@@ -88,6 +88,7 @@ class ContextHelp extends Popper { ...@@ -88,6 +88,7 @@ class ContextHelp extends Popper {
main: getTemplate(), main: getTemplate(),
}, },
mode: "auto", mode: "auto",
display: "inline-block"
}); });
} }
......
...@@ -327,6 +327,7 @@ class CustomElement extends HTMLElement { ...@@ -327,6 +327,7 @@ class CustomElement extends HTMLElement {
* @property {Object} templates Specifies the templates used by the control. * @property {Object} templates Specifies the templates used by the control.
* @property {string} templates.main=undefined Specifies the main template used by the control. * @property {string} templates.main=undefined Specifies the main template used by the control.
* @property {Object} templateMapping Specifies the mapping of templates. * @property {Object} templateMapping Specifies the mapping of templates.
* @property {string} display=block Specifies the display mode of the control.
* @since 1.8.0 * @since 1.8.0
*/ */
get defaults() { get defaults() {
...@@ -338,6 +339,7 @@ class CustomElement extends HTMLElement { ...@@ -338,6 +339,7 @@ class CustomElement extends HTMLElement {
main: undefined, main: undefined,
}, },
templateMapping: {}, templateMapping: {},
display: "block"
}; };
} }
...@@ -595,6 +597,8 @@ class CustomElement extends HTMLElement { ...@@ -595,6 +597,8 @@ class CustomElement extends HTMLElement {
let elements; let elements;
let nodeList; let nodeList;
this.style.setProperty("display", this.getOption("display"));
// Extract options from attributes and set them // Extract options from attributes and set them
const AttributeOptions = getOptionsFromAttributes.call(this); const AttributeOptions = getOptionsFromAttributes.call(this);
if ( if (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment