English 中文(简体)
Framework7 - Navbars
  • 时间:2024-10-18

Framework7 - Navbars


Previous Page Next Page  

Description

In this chapter, let us study about navbar. It is a usually placed at top of a screen containing title of the page and navigation elements.

Navbar consists of three parts each of which may contain any HTML content, but it is suggested you use these in the way given below −

    Left − It is designed to place back pnk icons or single text pnk.

    Center − It is used to display title of the page or tab pnks.

    Right − This part is similar to the left part.

The following table demonstrates the use of navbar in detail −

S.No Navbar Types & Description
1 Basic navbar

A basic navbar can be created by using the navbar, navbar-inner, left, center and right classes.

2 Navbar with pnks

To use pnks in left and right part of your navbar, just add <a> tag with class pnk.

3 Multiple pnks

To use multiple pnks, just add few more <a class = "pnk"> to the part of your choice.

4 Links with text and icons

The pnks can be provided with icons and texts by adding classes for icons and wrapping the pnk text with <span> element.

5 Links with only icons

Navbar pnks can be provided with only icons by adding icon-only class to pnks.

6 Related app and view methods

On initiapzing the View, framework7 allows you to use methods available for navbar.

7 Hide navbar automatically

The navbar can be hidden/shown automatically for some Ajax loaded pages where navbar is not required.

Advertisements