-
Notifications
You must be signed in to change notification settings - Fork 87
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
Syntax sugar for menu__item_type_link #1964
Comments
Хотел сказать что можно так делать... Но получилось длиннее ))) {
block : 'link',
mix : { block : this.block, elem: 'item', elemMods: {type: 'link'} },
url : 'https://bem.info/',
content : 'bem.info'
} Идея короткой записи пункта меню нравится. |
tadatuta
changed the title
Семантический сахар для menu__item_type_link
Syntax sugar for menu__item_type_link
Dec 13, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Сейчас в элемент
item
блокаmenu
нужно явно передавать блокlink
Это позволяет явно настраивать модификаторы link. Но в большинстве случаев это не нужно (как я думаю). Стоит ли добавить в шалоны ещё одно поведение для упрощениея верстки? (Срабатывает только когда content элемента
item
!= block: 'link')The text was updated successfully, but these errors were encountered: