- Source:
Classes
Methods
-
(inner) construct(bemjson, dataopt)
-
Внешний конструктор.
Parameters:
Name Type Attributes Description bemjson
object BEMJSON заматченной сущности data
object <optional>
Данные по сущности в дереве - Source:
-
(inner) id(prefixopt) → {string}
-
Сформировать идентификатор.
Parameters:
Name Type Attributes Default Description prefix
string <optional>
i Префикс для идентификатора - Source:
Returns:
- Type
- string
-
(inner) isBlock() → {boolean}
-
Проверить узел на блок.
- Source:
Returns:
- Type
- boolean
-
(inner) isElem() → {boolean}
-
Проверить узел на элемент.
- Source:
Returns:
- Type
- boolean
-
(inner) isFirst() → {boolean}
-
Проверить на первый элемент среди сестринских.
- Source:
Returns:
- Type
- boolean
-
(inner) isLast() → {boolean}
-
Проверить на последний элемент среди сестринских.
- Source:
Returns:
- Type
- boolean