I'm trying to create a custom select/combobox element using the Angular Material CdkListbox so that the select/comobox dropdown can have keyboard navigation like native browser selects. I need to access the CdkListbox in the corresponding .ts file and call the methods I need.
How do I reference the cdkListbox in the corresponding ts file in order to use the methods as listed on angular material cdk docs
<ul
cdkListbox
class="w-full max-h-56 h-full overflow-x-hidden overflow-y-auto"
data-simplebar>
<app-select-item
appSelectItem
*ngFor="let item of items"
[item]="item"
[cdkOption]="item"
[selected]="item.id === selectedItem!.id"
(emit-selected-item)="setSelectedItem($event)></app-select-item>