-
Notifications
You must be signed in to change notification settings - Fork 0
bem.elementSeparator
Version added: 1.0.0
The separator that is used for separating the name of the block from the name of the element.
By default in the BEM methodology for separating the name of the block from the name of the element the string "__" is used. This field allows to override this behavior and use any other character(s) as a separator.
Value: '__'
Type: String
Creates a CSS class of the element with the default separator:
Code:
var elementCssClass = bem.element('product', 'name');
Result:
'product__name'
Creates a CSS class of the element with a custom separator:
Code:
bem.elementSeparator = '--';
var elementCssClass = bem.element('product', 'name');
Result:
'product--name'
bem.elementSeparator
bem.modifierSeparator
bem.modifierValueSeparator
bem.block()
bem.blockModifier()
bem.element()
bem.elementModifier()
bem.getBlock()
bem.getElement()
jQuery.fn.addModifier()
jQuery.fn.blockName()
jQuery.fn.elementName()
jQuery.fn.getBlock()
jQuery.fn.getElement()
jQuery.fn.hasModifier()
jQuery.fn.isBlock()
jQuery.fn.isElement()
jQuery.fn.modifierValue()
jQuery.fn.removeModifier()