UNPKG

intentful

Version:

Create Custom Skills with less headache

37 lines (36 loc) 1.74 kB
import { LabeledRequestHandler } from '../../../skill/models'; import { Calculable } from '../../../types'; import { Command, CommandModel, CommandProps } from '../../commands'; import { KeyboardHandler, KeyboardHandlerProps } from '../../interfaces'; import { APLBaseComponentModel, APLBaseComponentProps, APLComponent } from '../component'; export interface APLScrollViewModel extends APLBaseComponentModel { onScroll?: Command<CommandModel, CommandProps>[]; onFocus?: Command<CommandModel, CommandProps>[]; onBlur?: Command<CommandModel, CommandProps>[]; handleKeyDown?: KeyboardHandler[]; handleKeyUp?: KeyboardHandler[]; nextFocusDown?: Calculable<string>; nextFocusForward?: Calculable<string>; nextFocusLeft?: Calculable<string>; nextFocusRight?: Calculable<string>; nextFocusUp?: Calculable<string>; items: APLBaseComponentModel[]; } export interface APLScrollViewProps extends APLBaseComponentProps { onScroll?: Command<CommandModel, CommandProps>[]; onFocus?: Command<CommandModel, CommandProps>[]; onBlur?: Command<CommandModel, CommandProps>[]; handleKeyDown?: KeyboardHandlerProps[]; handleKeyUp?: KeyboardHandlerProps[]; nextFocusDown?: Calculable<string>; nextFocusForward?: Calculable<string>; nextFocusLeft?: Calculable<string>; nextFocusRight?: Calculable<string>; nextFocusUp?: Calculable<string>; items: APLComponent<APLBaseComponentModel, APLBaseComponentProps>[]; } export declare class APLScrollView extends APLComponent<APLScrollViewModel, APLScrollViewProps> { constructor(props: APLScrollViewProps); componentSpecificModel(): APLScrollViewModel; componentSpecificRequestHandlers(): LabeledRequestHandler[]; }