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

Method _hasRadioAt

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

Where a radio indicator is shown at the given position.

(position: MatListOptionTogglePosition)

Source from the content-addressed store, hash-verified

232
233 /** Where a radio indicator is shown at the given position. */
234 _hasRadioAt(position: MatListOptionTogglePosition): boolean {
235 return (
236 !this._selectionList.multiple &&
237 this._getTogglePosition() === position &&
238 !this._selectionList.hideSingleSelectionIndicator
239 );
240 }
241
242 /** Whether icons or avatars are shown at the given position. */
243 _hasIconsOrAvatarsAt(position: 'before' | 'after'): boolean {

Callers 1

Calls 1

_getTogglePositionMethod · 0.95

Tested by

no test coverage detected