-
Notifications
You must be signed in to change notification settings - Fork 0
Navigation Bar
Xaviju edited this page Dec 14, 2015
·
5 revisions
To create a navigation bar you should just add the following code
<polymux-navigation-bar></polymux-navigation-bar>
Warning: A navigation bar does not work itself if it does not have any tab childs.
A navigation bar child component to create links to areas of the web.
To add tabs to your navigation bar just should add a <polymux-tab></polymux-tab>
child of the navigation bar.
<polymux-navigation-bar>
<polymux-tab tab-name="Home"></polymux-tab>
<polymux-tab tab-name="Discover"></polymux-tab>
<polymux-tab tab-name="Projects" link="index.html"></polymux-tab>
<polymux-tab tab-name="Profile" link="index.html"></polymux-tab>
</polymux-navigation-bar>
A Polymux tab accepts two attributes:
- tab-name: The name and the title of the link
- link: The link it will lead to.