Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bem-cell package #15

Open
4 of 10 tasks
blond opened this issue Nov 25, 2016 · 1 comment
Open
4 of 10 tasks

bem-cell package #15

blond opened this issue Nov 25, 2016 · 1 comment
Labels

Comments

@blond
Copy link
Member

blond commented Nov 25, 2016

Representation of identifier of a part of BEM entity.

Class should have fields:

Field Type Required
entity bem-entity-name required
tech string optionaly
layer string optionaly

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 // [email protected]
cell.contains(cell2) // true|false
@blond blond added the meta label Nov 25, 2016
@blond blond changed the title bem-entity package bem-cell package Dec 8, 2016
@qfox qfox assigned qfox and unassigned qfox Dec 11, 2016
@qfox
Copy link
Contributor

qfox commented Dec 23, 2016

@blond Any progress here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants