Browse Source

FEAT: added noselect modifier

instead of always manual setting no select stylings
dev-feat-component_preview
chris 2 months ago
parent
commit
c25f9bb93e
  1. 11
      src/modifier/Modifier.js

11
src/modifier/Modifier.js

@ -272,6 +272,17 @@ class Modifier {
return this; return this;
} }
/**
* Sets the style rules to deactivate text-selection in the component.
* @returns {Modifier}
*/
noneSelect() {
return this
.setStyleRule("user-select", "none")
.setStyleRule("-ms-user-select", "none")
.setStyleRule("-webkit-user-select", "none")
}
/** /**
* *
* @param {StylePropertyMap} rulemap * @param {StylePropertyMap} rulemap

Loading…
Cancel
Save