• 首页
  • Tutorials
  • API
  • DEMO
  • Google Group
  • Source Code
  • English API Docs

Navigation

  • index
  • modules |
  • next |
  • previous |
  • KISSY v1.2 Documentation »
  • API Documentation »
  • Component »
  • Menu »

Menu.Item¶

菜单项.

Class¶

  • Item

Config Attributes¶

  • selectable
  • checkable
  • value
  • content

Properties¶

  • checked
  • selected
  • value
  • content

Class Detail¶

class menu.Item¶
Item (config)
  • 继承自 ModelControl , 包含其全部配置,属性,方法,事件.
Parameters:config (Object) – 配置项,详细见下方 Config Attributes Detail .

Note

从已有元素实例 Menu 对象时 , 元素节点标明类名 {prefixCls}menuitem . prefixCls 为配置的类名前缀,默认为 ks- .

Config Attributes Detail¶

Item.config.selectable¶

{Boolean} - 是否可以被选择,可以的话,单击会添加指定 class 到根节点.

Item.config.checkable¶

{Boolean} - 是否可以被多选,可以的话,单击会添加或删除根节点的指定 class .

Item.config.value¶

{*} - 可选,该菜单项的值.

Item.config.content¶

{String} - 该菜单项的显示内容.

Properties Detail¶

Item.prototype.selected¶

{Boolean} - 当前菜单项是否被选中

Item.prototype.checked¶

{Boolean} - 当前菜单选是否被多选了

Item.prototype.value¶

{*} - 当前菜单项的值.

Item.prototype.content¶

{String} - 当前菜单项的显示内容.

Navigation

  • index
  • modules |
  • next |
  • previous |
  • KISSY v1.2 Documentation »
  • API Documentation »
  • Component »
  • Menu »

    Seed

    • loader
    • kissy
    • lang
    • web

    Core

    • ua
    • dom
    • event
    • node
    • json
    • ajax
    • cookie
    • base
    • anim

    Component

    • sizzle
    • mvc
    • template
    • datalazyload
    • flash
    • dd
    • resizable
    • switchable
    • suggest
    • calendar
    • imagezoom
    • overlay
    • uibase
    • component
    • button
    • menu
    • menubutton
    • tree
    • waterfall
    • validation
    • editor
© Copyright 2010~2012, KISSY Team. Created using Sphinx