MCPcopy Create free account
hub / github.com/angular/components / isDrinkOptionDisabled

Method isDrinkOptionDisabled

src/dev-app/select/select-demo.ts:209–221  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

207 }
208
209 isDrinkOptionDisabled(index: number) {
210 if (this.drinksOptionsDisabled === 'all') {
211 return true;
212 }
213 if (this.drinksOptionsDisabled === 'first-middle-last') {
214 return (
215 index === 0 ||
216 index === this.drinks.length - 1 ||
217 index === Math.floor(this.drinks.length / 2)
218 );
219 }
220 return false;
221 }
222}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected