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

Предложение: унифицировать доступ к navbar'у. #2904

Closed
shastox opened this issue Dec 21, 2018 · 2 comments
Closed
Labels

Comments

@shastox
Copy link
Contributor

shastox commented Dec 21, 2018

Поскольку в iOS-теме navbar меняет свое положение в DOM, были введены методы page.navbarEl и page.$navbarEl ( https://framework7.io/docs/page.html#page-data ). Но они работают только в iOS-теме.

Предложение: расширить эти методы на MD-тему, чтобы в коде всегда однообразно можно было получить доступ к navbar'у, а не делать проверку на текущую тему.

@nolimits4web
Copy link
Member

В v4 я удалю "page.navbarEl" из документации. Для доступа к нужному навбару лучше использовать метод app.navbar.getElByPage(pageEl), он и сейчас в v3 вернет правильный navbar-inner для MD темы

@nolimits4web
Copy link
Member

Просто лишний раз лучше не захламлять объект pageEl дабы избежать ненужных утечек памяти

@lock lock bot added the outdated label Aug 21, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants