MCPcopy
hub / github.com/angular/components / constructor

Method constructor

src/aria/combobox/combobox.ts:125–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 });
124
125 constructor() {
126 super();
127
128 afterRenderEffect({write: () => this._pattern.keyboardEventRelayEffect()});
129 afterRenderEffect(() => this._pattern.closePopupOnBlurEffect());
130 afterRenderEffect(() => {
131 this.contentVisible.set(this._pattern.isExpanded());
132 });
133
134 if (this._pattern.isEditable()) {
135 afterRenderEffect(() => {
136 this._renderer.setProperty(this.element, 'value', this.value());
137 });
138 afterRenderEffect(() => {
139 this._pattern.highlightEffect();
140 });
141 }
142 }
143
144 ngOnInit() {
145 if (this.alwaysExpanded()) {

Callers

nothing calls this directly

Calls 7

setMethod · 0.80
isEditableMethod · 0.80
highlightEffectMethod · 0.80
isExpandedMethod · 0.65
valueMethod · 0.45

Tested by

no test coverage detected