Table of contents

Bottom sheet

Bottom sheets are surfaces containing supplementary content that are anchored to the bottom of the screen.

About

Designed for using with PhoneGap

Bottom sheets are surfaces containing supplementary content that are anchored to the bottom of the screen. Bottom sheets are anchored to the bottom edge of the screen and appear in front of other UI elements. They are full-width on mobile and can be inset or full-width on tablet or desktop.

Bottom sheets can be displayed as list or as grid.

  • Message
  • Location
  • Voice
  • Dialer
  • Upload
  • Message
  • Location
  • Voice
  • Dialer
  • Upload

Create bottom sheet

To create bottom sheet, add attribute data-role="bottomsheet" to your html list.


                    <ul data-role="bottomsheet">
                        <li><span class="icon mif-comment"></span>Message</li>
                        <li><span class="icon mif-location"></span>Location</li>
                        <li><span class="icon mif-keyboard-voice"></span>Voice</li>
                        <li><span class="icon mif-phone"></span>Dialer</li>
                        <li class="divider"></li>
                        <li><span class="icon mif-file-upload"></span>Upload</li>
                    </ul>
                

Methods

To interact with component, you must use component API methods or methods of Metro.bottomsheet object.

  • Message
  • Location
  • Voice
  • Dialer
  • Upload

You can use next API methods:

  • open('list|grid')
  • close()
  • isOpen()
  • toggle('list|grid')

And next Metro.bottomsheet methods:

  • open(el, 'list|grid')
  • close(el)
  • isOpen(el)
  • toggle(el, 'list|grid')