EN RU
Forum

Methodology

Technology

Toolbox

Libraries

Tutorials

DocumentationJSDocSource

menu-item

Use this block as a part of the menu block.

Overview

Modifiers of the block

Modifier Acceptable values Use cases Description
type 'link' BEMJSON The menu item implemented by the link block.
disabled true BEMJSON, JS The disabled state.
hovered true The hovered state.

Custom fields of the block

Field Type Description
val Number, String The value of the menu item.

Block description

Use the menu-item block to control the size, state and appearance of the menu items. Use this block as a part of the menu block.

Modifiers of the block

type modifier

Acceptable value: 'link'.

Use case: BEMJSON.

Use this modifier to create the menu items implemented by the link block that must be declared in the content field in BEMJSON.

Open in a new window

disabled modifier

Acceptable value: true.

Use cases: BEMJSON, JS.

The modifier makes the block inactive. The disabled block is visible but not available for user actions.

Open in a new window

hovered modifier

Acceptable value: true.

Use case: – .

The modifier is added to the block automatically at the moment when you mouse it over.

Custom fields of the block

val field

Type: Number, String.

Specifies the value of the menu item.

Open in a new window

Block menu-item

Instance methods:

isValEq(val):Boolean
description
Checks whether given value is equal to current value
parameters
val
String, Number
getVal():Any
description
Returns item value
getText():String
description
Returns item text