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

Method _isSorted

src/material/sort/sort-header.ts:190–195  ·  view source on GitHub ↗

Whether this MatSortHeader is currently sorted in either ascending or descending order.

()

Source from the content-addressed store, hash-verified

188
189 /** Whether this MatSortHeader is currently sorted in either ascending or descending order. */
190 _isSorted() {
191 return (
192 this._sort.active == this.id &&
193 (this._sort.direction === 'asc' || this._sort.direction === 'desc')
194 );
195 }
196
197 _isDisabled() {
198 return this._sort.disabled || this.disabled;

Callers 3

_toggleOnInteractionMethod · 0.95
_getAriaSortAttributeMethod · 0.95
_renderArrowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected