Open blond opened 7 years ago
Representation of identifier of a part of BEM entity.
Class should have fields:
entity
bem-entity-name
tech
string
layer
Possible API:
const cell = require('@bem/cell'); const cell = new BemCell({ entity: { block: 'button', elem: 'text' }, tech: 'css', layer: 'common' }); cell.entity // // ➜ BemEntityName { block: 'button', elem: 'text' } cell.tech // css cell.layer // common cell.id // button__test@common.css cell.contains(cell2) // true|false
id
contains(...)
@blond Any progress here?
Representation of identifier of a part of BEM entity.
Class should have fields:
entity
bem-entity-name
tech
string
layer
string
Possible API:
id
(https://github.com/bem-sdk/bem-cell/issues/2)contains(...)
etc