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

Method _hasCheckboxAt

src/material/list/list-option.ts:229–231  ·  view source on GitHub ↗

Whether a checkbox is shown at the given position.

(position: MatListOptionTogglePosition)

Source from the content-addressed store, hash-verified

227
228 /** Whether a checkbox is shown at the given position. */
229 _hasCheckboxAt(position: MatListOptionTogglePosition): boolean {
230 return this._selectionList.multiple && this._getTogglePosition() === position;
231 }
232
233 /** Where a radio indicator is shown at the given position. */
234 _hasRadioAt(position: MatListOptionTogglePosition): boolean {

Callers 1

Calls 1

_getTogglePositionMethod · 0.95

Tested by

no test coverage detected