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
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
08bdc580
Verified
Commit
08bdc580
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove display property #219
parent
19fed8d8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/dom/customelement.mjs
+2
-6
2 additions, 6 deletions
source/dom/customelement.mjs
with
2 additions
and
6 deletions
source/dom/customelement.mjs
+
2
−
6
View file @
08bdc580
...
@@ -327,7 +327,6 @@ class CustomElement extends HTMLElement {
...
@@ -327,7 +327,6 @@ 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
()
{
...
@@ -339,20 +338,19 @@ class CustomElement extends HTMLElement {
...
@@ -339,20 +338,19 @@ class CustomElement extends HTMLElement {
main
:
undefined
,
main
:
undefined
,
},
},
templateMapping
:
{},
templateMapping
:
{},
display
:
"
block
"
};
};
}
}
/**
/**
* This method updates the labels of the element.
* This method updates the labels of the element.
* The labels are defined in the option
s
object.
* The labels are defined in the option object.
* The key of the label is used to retrieve the translation from the document.
* The key of the label is used to retrieve the translation from the document.
* If the translation is different from the label, the label is updated.
* If the translation is different from the label, the label is updated.
*
*
* Before you can use this method, you must have loaded the translations.
* Before you can use this method, you must have loaded the translations.
*
*
* @returns {Monster.DOM.CustomElement}
* @returns {Monster.DOM.CustomElement}
* @throws {Error} Cannot find element with translations. Add a translation
s
object to the document.
* @throws {Error} Cannot find
an
element with translations. Add a translation object to the document.
*/
*/
updateI18n
()
{
updateI18n
()
{
let
translations
;
let
translations
;
...
@@ -597,8 +595,6 @@ class CustomElement extends HTMLElement {
...
@@ -597,8 +595,6 @@ 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