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

Method sort

src/material/sort/sort.spec.ts:643–645  ·  view source on GitHub ↗
(id: SimpleMatSortAppColumnIds)

Source from the content-addressed store, hash-verified

641 @ViewChild('defaultA') defaultA!: MatSortHeader;
642
643 sort(id: SimpleMatSortAppColumnIds) {
644 this.dispatchMouseEvent(id, 'click');
645 }
646
647 dispatchMouseEvent(id: SimpleMatSortAppColumnIds, event: string) {
648 const sortElement = this.elementRef.nativeElement.querySelector(`#${id}`)!;

Callers

nothing calls this directly

Calls 1

dispatchMouseEventMethod · 0.95

Tested by

no test coverage detected