All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.es.utils.valueUtil.d.ts Maven / Gradle / Ivy

The newest version!
import type { BaseOptionType, DefaultOptionType } from '../Select';
import type { FieldNames } from '../Select';
import type { FlattenOptionData } from '../interface';
export declare function isValidCount(value?: number): boolean;
export declare function fillFieldNames(fieldNames: FieldNames | undefined, childrenAsData: boolean): {
    label: string;
    value: string;
    options: string;
    groupLabel: string;
};
/**
 * Flat options into flatten list.
 * We use `optionOnly` here is aim to avoid user use nested option group.
 * Here is simply set `key` to the index if not provided.
 */
export declare function flattenOptions(options: OptionType[], { fieldNames, childrenAsData }?: {
    fieldNames?: FieldNames;
    childrenAsData?: boolean;
}): FlattenOptionData[];
/**
 * Inject `props` into `option` for legacy usage
 */
export declare function injectPropsWithOption(option: T): T;
export declare const getSeparatedContent: (text: string, tokens: string[], end?: number) => string[];




© 2015 - 2024 Weber Informatics LLC | Privacy Policy