MCPcopy Create free account
hub / github.com/UI5/webcomponents / _setActiveState

Method _setActiveState

packages/main/src/Button.ts:632–640  ·  view source on GitHub ↗
(active: boolean)

Source from the content-addressed store, hash-verified

630 }
631
632 _setActiveState(active: boolean) {
633 const eventPrevented = !this.fireDecoratorEvent("active-state-change");
634
635 if (eventPrevented || this.loading) {
636 return;
637 }
638
639 this.active = active;
640 }
641
642 get hasButtonType() {
643 return this.design !== ButtonDesign.Default && this.design !== ButtonDesign.Transparent;

Callers 7

_ontouchstartMethod · 0.95
_onmousedownMethod · 0.95
_ontouchendMethod · 0.95
_onkeydownMethod · 0.95
_onkeyupMethod · 0.95
_onfocusoutMethod · 0.95
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected