Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
0e7fb004
Verified
Commit
0e7fb004
authored
11 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
feat: new comprehensive options display #213
parent
dc7d1cb5
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
source/components/form/context-error.mjs
+2
-0
2 additions, 0 deletions
source/components/form/context-error.mjs
source/components/form/context-help.mjs
+1
-0
1 addition, 0 deletions
source/components/form/context-help.mjs
source/dom/customelement.mjs
+4
-0
4 additions, 0 deletions
source/dom/customelement.mjs
with
7 additions
and
0 deletions
source/components/form/context-error.mjs
+
2
−
0
View file @
0e7fb004
...
@@ -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
"
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
source/components/form/context-help.mjs
+
1
−
0
View file @
0e7fb004
...
@@ -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
"
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
source/dom/customelement.mjs
+
4
−
0
View file @
0e7fb004
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment