Bem Vindo

Saiba Como programar para o Firefox OS e avançe seus conhecimentos com Tutoriais Ineditos e fique informado sobre as noticias.

domingo, 28 de julho de 2013

Criando um Drawer - Tutoriais - Building Blocks

Drawer

Drawers provide access to top-level navigation options that may be too numerous for a tabs or toolbar interface. Drawers can also be used to access user-generated content such as browser tabs, accounts in an email or messaging client, or multiple calendars. Drawers slide out from the edge of the screen at the user's request (pushing the underlying content aside), then slide back out of the way when no longer needed.More

Example


Drawer (Image replacing code)

Css link

1
<link href="(your styles folder)/style_unstable/drawer.css" rel="stylesheet" type="text/css">

HTML code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<section data-type="sidebar">
  <header>
    <menu type="toolbar">
      <a href="#content"><span class="icon icon-add">add</span></a>
    </menu>
    <h1>Title <em>(9)</em></h1>
  </header>
  <nav>
    <ul>
      <li><a href="#content">label</a></li>
      <li><a href="#content">label</a></li>
      <li><a href="#content">label</a></li>
      <li><a href="#content">label</a></li>
    </ul>
    <h2>Subtitle</h2>
    <ul>
      <li><a href="#content">label</a></li>
      <li><a href="#content">label</a></li>
      <li><a href="#content">label larger label than the </a></li>
      <li><a href="#content">label</a></li>
    </ul>
  </nav>
</section>
<section id="drawer" role="region">
  <header>
    <a href="#content"><span class="icon icon-menu">hide sidebar</span></a>
    <a href="#drawer"><span class="icon icon-menu">show sidebar</span></a>
    <h1>Inbox</h1>
  </header>
  <div role="main"></div>
</section>

Traduzido por : Project Firefox OS

# COMPARTILHE

Diego Reis

Garoto sonhador de 13 anos , Faz parte da Created Box, CEO e Administrador do site

0 comentários:

Postar um comentário

Firefox OS Project Copyright 2013 Criado e Programado por Diego Reis - - Designed by Templateism