Listbox
Lista de selección persistente simple o múltiple con soporte de teclado, búsqueda y templates de opción.
TypeScript
import { NeuListboxComponent, NeuListboxItemDirective, NeuListboxHeaderDirective, NeuListboxFooterDirective, NeuListboxEmptyDirective } from '@neural-ui/core/listbox';Roles
Elige uno o varios roles.
TypeScript
import { NeuListboxComponent, NeuListboxItemDirective, NeuListboxHeaderDirective, NeuListboxFooterDirective, NeuListboxEmptyDirective } from '@neural-ui/core/listbox';
@Component({
imports: [NeuListboxComponent, NeuListboxItemDirective, NeuListboxHeaderDirective, NeuListboxFooterDirective, NeuListboxEmptyDirective],
template: `
<neu-listbox label="Roles" [options]="options" [multiple]="true">
<ng-template neuListboxHeader><strong>Workspace roles</strong></ng-template>
<ng-template neuListboxItem let-role>● {{ role.label }}</ng-template>
<ng-template neuListboxEmpty>No matching role</ng-template>
<ng-template neuListboxFooter><small>Choose one or more roles</small></ng-template>
</neu-listbox>`
})
export class ExampleComponent {}