Appbar - 图1

Appbar Vue Component

Appbar Vue component represents Appbar element.

It is the main app bar with actions on top of the whole app. It is designed to be used in desktop apps with Aurora theme.

Appbar Components

There are following components included:

  • **f7-appbar**

Appbar Properties

PropTypeDefaultDescription
<f7-appbar> properties
innerbooleantrueWhen enabled (by default), it will put all the content within internal appbar-inner element. Disable it only in case you want to put totally custom layout inside
no-shadowbooleanfalseDisable shadow rendering for MD theme
no-hairlinebooleanfalseDisable appbar bottom thin border (hairline) for iOS theme
inner-classstringAdds additional class to appbar-inner element

Examples

  1. <f7-app>
  2. <f7-appbar>
  3. <div class="left">
  4. <f7-button small panel-toggle="left" class="display-flex" icon-f7="bars"></f7-button>
  5. <f7-button small class="display-flex margin-left-half" icon-f7="reply_fill"></f7-button>
  6. <f7-button small class="display-flex margin-left-half" icon-f7="forward_fill"></f7-button>
  7. </div>
  8. <div class="right">
  9. <f7-searchbar
  10. inline
  11. custom-search
  12. :disable-button="false"
  13. ></f7-searchbar>
  14. </div>
  15. </f7-appbar>
  16. <f7-view main>
  17. <f7-page>
  18. <f7-navbar title="Appbar"></f7-navbar>
  19. <f7-block strong>
  20. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sed sagittis dui. Fusce nulla massa, scelerisque vitae auctor in, luctus in ipsum. Sed eu lectus vel magna malesuada lacinia. Ut at vestibulum sem. In semper, arcu pulvinar volutpat fermentum, felis magna fringilla felis, nec volutpat nisi nunc quis ante. Fusce elementum egestas tortor ut porta. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis id commodo elit. Sed massa dui, laoreet a orci sed, egestas vehicula tellus. Nulla pulvinar ornare justo sed finibus. Aliquam hendrerit dui at nulla eleifend, quis feugiat enim aliquam. Nulla facilisi. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
  21. </f7-block>
  22. </f7-page>
  23. </f7-view>
  24. </f7-app>