import { KbqSearchExpandableModule } from '@koobiq/components/search-expandable';

KbqSearchExpandable

componentCopy link to KbqSearchExpandable
@Component({ selector: 'kbq-search-expandable' })
class KbqSearchExpandable implements ControlValueAccessor {
    isOpened = model<boolean | undefined>();
    readonly isEmitValueByEnterEnabled = input<boolean>(false);
    readonly emitValueTimeout = input<number>(defaultEmitValueTimeout);
    tooltipText = input<string | null | undefined>();
    placeholder = input<string | null | undefined>();
    disabled = input<boolean | undefined>();
    readonly localeConfiguration: Signal<KbqSearchExpandableLocaleConfiguration>;
    readonly value: WritableSignal<string>;
    toggle(): void;
}
isOpenedmodelCopy link to isOpenedboolean | undefined

state of component.

isEmitValueByEnterEnabledinputCopy link to isEmitValueByEnterEnabledboolean

Emit event by enter or not. Default is false

emitValueTimeoutinputCopy link to emitValueTimeoutnumber

Timeout in milliseconds for emit event. The default value is taken from defaultEmitValueTimeout

tooltipTextinputCopy link to tooltipTextstring | null | undefined

Tooltip text for the search button. When set, overrides the locale tooltip

placeholderinputCopy link to placeholderstring | null | undefined

Placeholder for input when expanded

disabledinputCopy link to disabledboolean | undefined

Whether the component is disabled. Also set by the bound control through setDisabledState.

localeOverridesinputCopy link to localeOverridesKbqPartialLocaleData | undefined

Localized strings for this element and its subtree, keyed by locale section. Every key is optional at every depth.

localeConfigurationCopy link to localeConfigurationSignal<KbqSearchExpandableLocaleConfiguration>

Strings currently rendered by the component.

valueCopy link to valueWritableSignal<string>

Current value in input. A write reaches the field, and the bound control once emitValueTimeout passes.

defaultEmitValueTimeout

constCopy link to defaultEmitValueTimeout
const defaultEmitValueTimeout: number;

defaultValue

constCopy link to defaultValue
const defaultValue: string;

KBQ_SEARCH_EXPANDABLE_CONFIGURATION

constDeprecatedCopy link to KBQ_SEARCH_EXPANDABLE_CONFIGURATION

Use KBQ_SEARCH_EXPANDABLE_LOCALE_CONFIGURATION. Will be removed in 22.0.0.

const KBQ_SEARCH_EXPANDABLE_CONFIGURATION: InjectionToken<KbqSearchExpandableLocaleConfiguration>;

KBQ_SEARCH_EXPANDABLE_DEFAULT_CONFIGURATION

constDeprecatedCopy link to KBQ_SEARCH_EXPANDABLE_DEFAULT_CONFIGURATION

Use KBQ_SEARCH_EXPANDABLE_DEFAULT_LOCALE_CONFIGURATION. Will be removed in 22.0.0.

const KBQ_SEARCH_EXPANDABLE_DEFAULT_CONFIGURATION: KbqSearchExpandableLocaleConfiguration;

KBQ_SEARCH_EXPANDABLE_DEFAULT_LOCALE_CONFIGURATION

constCopy link to KBQ_SEARCH_EXPANDABLE_DEFAULT_LOCALE_CONFIGURATION

default configuration of search-expandable

const KBQ_SEARCH_EXPANDABLE_DEFAULT_LOCALE_CONFIGURATION: KbqSearchExpandableLocaleConfiguration;

KBQ_SEARCH_EXPANDABLE_LOCALE_CONFIGURATION

constCopy link to KBQ_SEARCH_EXPANDABLE_LOCALE_CONFIGURATION

Injection Token for providing configuration of search-expandable

const KBQ_SEARCH_EXPANDABLE_LOCALE_CONFIGURATION: InjectionToken<KbqSearchExpandableLocaleConfiguration>;

kbqSearchExpandableLocaleConfigurationProvider

constCopy link to kbqSearchExpandableLocaleConfigurationProvider

Utility provider for KBQ_SEARCH_EXPANDABLE_LOCALE_CONFIGURATION. Only the strings you pass are overridden; the rest keep following the active locale.

const kbqSearchExpandableLocaleConfigurationProvider: (
    configuration: KbqDeepPartial<KbqSearchExpandableLocaleConfiguration>
) => Provider;
Suggestions for improvement
If you found a mistake or want to improve the article, create an issue on GitHub.