Skip to content

Search input

@xngui/components/search-input
@xngui/components/search-input

Search input with debounced query.

Preview

Debounced query fires on the searched output.

import { form, validate } from '@angular/forms/signals';
import { XForm } from '@xngui/components/form';
import { XFormField } from '@xngui/components/form-field';
import { XSearchInput } from '@xngui/components/search-input';
 
private readonly model = signal({ query: '' });
 
protected readonly demoForm = form(this.model, (path) => {
syncDemoStringLength(path.query, () => this.controlState());
validate(path.query, ({ value }) => demoStringFieldErrors(this.controlState(), value));
});

Events

Interact with the preview — events will appear here.