EN RU
Forum

Methodology

Technology

Toolbox

Libraries

Tutorials

JSDocSource

Module i-bem

Object methods:

Block()
description
Block class
Elem()
description
Elem class
entities()
description
Storage for block declarations (hash by block name)
declBlock(blockName, [base], [props], [staticProps]):Function
description
Declares block and creates a block class
parameters
blockName
String, Function
Block name or block class
base
Function, [object Object]
base block + mixes
props
Object
Methods
staticProps
Object
Static methods
declElem([blockName], elemName, [base], [props], [staticProps]):Function
description
Declares elem and creates an elem class
parameters
blockName
String
Block name
elemName
String, Function
Elem name or elem class
base
Function, Function
base elem + mixes
props
Object
Methods
staticProps
Object
Static methods
declMixin([props], [staticProps]):Function
description
Declares mixin
parameters
props
Object
Methods
staticProps
Object
Static methods

i-bem__internal

Object methods:

buildClassName(block, [elem], [modName], [modVal]):String
description
Builds the class name of a block or element with a modifier
parameters
block
String
Block name
elem
String
Element name
modName
String
Modifier name
modVal
String, Number
Modifier value
buildClassNames(block, [elem], [mods]):String
description
Builds full class names for a buffer or element with modifiers
parameters
block
String
Block name
elem
String
Element name
mods
Object
Modifiers