层级 (查看完整内容)

实现

构造函数

属性

allowSelectByRightClick: boolean = true
scrollItemToViewOnClick: boolean = false

Scroll the item into view when it is selected.

选择时滚动到视图中。

访问器

方法

  • 参数

    • index: number

      The index of the item to add.

    • 可选scrollItToView: boolean

      Whether to scroll the item into view.

    返回 void

    Add an item to the selection.

    添加一个项到选择中。

  • 参数

    • enabled: boolean

      Whether to enable arrow key navigation.

    • 可选keySelectEvent: string

      The event name to trigger when an item is selected using arrow keys.

    返回 void

    Enable or disable arrow key navigation.

    启用或禁用箭头键导航。