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

KbqSearchExpandable

componentСкопировать ссылку на 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;
}
isOpenedmodelСкопировать ссылку на isOpenedboolean | undefined

state of component.

isEmitValueByEnterEnabledinputСкопировать ссылку на isEmitValueByEnterEnabledboolean

Emit event by enter or not. Default is false

emitValueTimeoutinputСкопировать ссылку на emitValueTimeoutnumber

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

tooltipTextinputСкопировать ссылку на tooltipTextstring | null | undefined

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

placeholderinputСкопировать ссылку на placeholderstring | null | undefined

Placeholder for input when expanded

disabledinputСкопировать ссылку на disabledboolean | undefined

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

localeOverridesinputСкопировать ссылку на localeOverridesKbqPartialLocaleData | undefined

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

localeConfigurationСкопировать ссылку на localeConfigurationSignal<KbqSearchExpandableLocaleConfiguration>

Strings currently rendered by the component.

valueСкопировать ссылку на valueWritableSignal<string>

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

defaultEmitValueTimeout

constСкопировать ссылку на defaultEmitValueTimeout
const defaultEmitValueTimeout: number;

defaultValue

constСкопировать ссылку на defaultValue
const defaultValue: string;

KBQ_SEARCH_EXPANDABLE_CONFIGURATION

constDeprecatedСкопировать ссылку на 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

constDeprecatedСкопировать ссылку на 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

constСкопировать ссылку на KBQ_SEARCH_EXPANDABLE_DEFAULT_LOCALE_CONFIGURATION

default configuration of search-expandable

const KBQ_SEARCH_EXPANDABLE_DEFAULT_LOCALE_CONFIGURATION: KbqSearchExpandableLocaleConfiguration;

KBQ_SEARCH_EXPANDABLE_LOCALE_CONFIGURATION

constСкопировать ссылку на KBQ_SEARCH_EXPANDABLE_LOCALE_CONFIGURATION

Injection Token for providing configuration of search-expandable

const KBQ_SEARCH_EXPANDABLE_LOCALE_CONFIGURATION: InjectionToken<KbqSearchExpandableLocaleConfiguration>;

kbqSearchExpandableLocaleConfigurationProvider

constСкопировать ссылку на 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;
Предложения по улучшению
Если вы нашли ошибку или хотите доработать статью, создайте запрос на GitHub.