|
|
@ -84,6 +84,38 @@ class Component extends StyleAndScriptStoringComponent { |
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {boolean} vertical Defines if the Component should overflow vertically (default: true) |
|
|
|
* @param {boolean} horizontal Defines if the Component should overflow horizontally (default: false) |
|
|
|
* @returns {Component} |
|
|
|
*/ |
|
|
|
overflow(vertical = true, horizontal = false) { |
|
|
|
if (vertical) { |
|
|
|
this._modifier._modifications["overflow-y"] = "auto"; |
|
|
|
} |
|
|
|
if (horizontal) { |
|
|
|
this._modifier._modifications["overflow-x"] = "auto"; |
|
|
|
} |
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {boolean} untilFound |
|
|
|
* @returns {Component} |
|
|
|
*/ |
|
|
|
hidden(untilFound = false) { |
|
|
|
this._modifier.removeStyleRule("display"); |
|
|
|
this.setAttribute( |
|
|
|
"hidden", |
|
|
|
(untilFound ? "until-found" : "hidden") |
|
|
|
); |
|
|
|
|
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @returns {Component} |
|
|
|