interface ISelection {
    index: number;
    mode: SelectionMode;
    scrollItemToViewOnClick: boolean;
    add(index: number, scrollItToView?: boolean): void;
    clear(): void;
    enableArrowKeyNavigation(enabled: boolean, keySelectEvent?: string): void;
    enableFocusEvents(enabled: boolean): void;
    get(out?: number[]): number[];
    handleArrowKey(dir: number): number;
    handleClick(item: GWidget, evt: Event): void;
    remove(index: number): void;
    selectAll(): void;
    selectReverse(): void;
}

层级 (查看层级一览)

实现于

属性

index: number
scrollItemToViewOnClick: boolean

方法