import { RenderResult } from '@dojo/framework/core/interfaces'; import { ItemRendererProperties, ListOption, ListItemProperties, MenuItemProperties } from '../list'; import { PopupPosition } from '@dojo/widgets/popup'; export interface ChipTypeaheadProperties { /** The initial selected value */ initialValue?: string[]; /** Callback called when user selects an option from the typeahead */ onValue?: (value: ListOption[]) => void; /** Optional controlled value */ value?: string[]; /** Property to determine if the input is disabled */ disabled?: boolean; /** Property to determine how many items to render. Defaults to 6 */ itemsInView?: number; /** The name of the input */ name?: string; /** Placement of the select menu; 'above' or 'below' */ position?: PopupPosition; /** Placement of the selected values. Default is 'inline' */ placement?: 'inline' | 'bottom'; /** Allow duplicates of the same value to be selected. Default is false */ duplicates?: boolean; /** Flag to indicate if values other than those in the resource can be entered, defaults to true */ strict?: boolean; /** The kind of chip typeahead input */ kind?: 'outlined' | 'filled'; } export interface ChipTypeaheadChildren { /** Adds a