|
31 | 31 | <m:MaterialNavBar backgroundColor="blue" activates="mysidenav"><br/> |
32 | 32 |  <-- NavBar content here --><br/> |
33 | 33 | </m:MaterialNavBar><br/><br/> |
34 | | - <m:MaterialSideNav m:id="mysidenav" type="OPEN" width="200" closeOnClick="false"><br/> |
| 34 | + <m:MaterialSideNav m:id="mysidenav" type="FIXED" width="200" closeOnClick="false"><br/> |
35 | 35 |  <!-- SideNav Links here --><br/> |
36 | 36 | </m:MaterialSideNav><br/> |
37 | 37 | </demo:PrettyPre> |
|
43 | 43 | <p>m:id - The Id of your sidenav, required by material navbar component.</p> |
44 | 44 | <p>type - There are 4 Permanent Types (No Nav Menu) [open, float, card, clip] and 2 Persistent Types (With Nav Menu) [close, mini].</p> |
45 | 45 | <p>closeOnClick - If clicked on the sidemenu items it will be automatically closed if set to true.</p> |
| 46 | + <p>alwaysShowActivator - Stop the side nav from hiding your activator element.</p> |
| 47 | + <p>allowBodyScroll - Stop the side nav from blocking your body element from scrolling.</p> |
| 48 | + <p>showOnAttach - Invoke a deferred show call to show your side nav (this isn't always required as some will automatically show).</p> |
46 | 49 | </blockquote> |
47 | 50 |
|
48 | | - <!-- OPEN Permanent --> |
49 | | - <m:MaterialTitle title="Open Permanent" description="The sidebar will be visible by default on large screen devices. You may require to set your padding-left of your MaterialHeader, MaterialMain and MaterialFooter components based on your SideNav Width "/> |
| 51 | + <!-- FIXED --> |
| 52 | + <m:MaterialTitle title="Fixed Type" description="The sidebar will be visible by default on large screen devices. You may require to set your padding-left of your MaterialHeader, MaterialMain and MaterialFooter components based on your SideNav Width "/> |
50 | 53 | <m:MaterialImage addStyleNames="z-depth-1" url="https://cloud.githubusercontent.com/assets/3138071/10042710/e988f530-61a1-11e5-8e25-71ab5adf9d12.png"/> |
51 | 54 | <demo:PrettyPre addStyleNames="lang-xml z-depth-1"> |
52 | 55 | <m:MaterialNavBar backgroundColor="blue" activates="mysidebar"><br/> |
|
63 | 66 |  </m:MaterialNavSection><br/> |
64 | 67 | </m:MaterialNavBar><br/><br/> |
65 | 68 |
|
66 | | - <m:MaterialSideNav width="300" m:id="mysidebar" type="OPEN" closeOnClick="false"><br/> |
| 69 | + <m:MaterialSideNav width="300" m:id="mysidebar" type="FIXED" closeOnClick="false"><br/> |
67 | 70 |  <m:MaterialNavBrand href="#Test">Title</m:MaterialNavBrand><br/> |
68 | 71 |  <m:MaterialLink iconType="INBOX" iconPosition="LEFT" textColor="blue" text="Inbox" /><br/> |
69 | 72 |  <m:MaterialLink iconType="STARS" iconPosition="LEFT" textColor="grey" text="Starred" /><br/> |
|
73 | 76 | </m:MaterialSideNav><br/> |
74 | 77 | </demo:PrettyPre> |
75 | 78 |
|
76 | | - <!-- FLOAT PERMANENT --> |
77 | | - <m:MaterialTitle title="Float Permanent" /> |
78 | | - <m:MaterialImage addStyleNames="z-depth-1" url="https://cloud.githubusercontent.com/assets/3138071/10065329/1b8c34ec-6239-11e5-9979-18d17224e1aa.png"/> |
79 | | - <demo:PrettyPre addStyleNames="lang-xml z-depth-1"> |
80 | | - <m:MaterialNavBar backgroundColor="blue" activates="mysidebar"><br/> |
81 | | -  <m:MaterialNavSection textAlign="RIGHT"><br/> |
82 | | -   <m:MaterialTooltip text="Starter"><br/> |
83 | | -    <m:MaterialLink iconType="WHATSHOT" textColor="white"/><br/> |
84 | | -   </m:MaterialTooltip><br/> |
85 | | -   <m:MaterialTooltip text="Starter"><br/> |
86 | | -    <m:MaterialLink iconType="WHATSHOT" textColor="white"/><br/> |
87 | | -   </m:MaterialTooltip><br/> |
88 | | -   <m:MaterialTooltip text="Starter"><br/> |
89 | | -    <m:MaterialLink iconType="WHATSHOT" textColor="white"/><br/> |
90 | | -   </m:MaterialTooltip><br/> |
91 | | -  </m:MaterialNavSection><br/> |
92 | | - </m:MaterialNavBar><br/><br/> |
93 | | - |
94 | | - <m:MaterialSideNav width="300" m:id="mysidebar" type="FLOAT" closeOnClick="false"><br/> |
95 | | -  <m:MaterialNavBrand href="#Test">Title</m:MaterialNavBrand><br/> |
96 | | -  <m:MaterialLink iconType="INBOX" iconPosition="LEFT" textColor="blue" text="Inbox" /><br/> |
97 | | -  <m:MaterialLink iconType="STARS" iconPosition="LEFT" textColor="grey" text="Starred" /><br/> |
98 | | -  <m:MaterialLink iconType="SEND" iconPosition="LEFT" textColor="grey" text="Sent Mail" /><br/> |
99 | | -  <m:MaterialLink iconType="DRAFTS" iconPosition="LEFT" textColor="grey" text="Drafts" /><br/> |
100 | | -  <m:MaterialLink iconType="MARKUNREAD" iconPosition="LEFT" textColor="grey" text="All Mail" /><br/> |
101 | | - </m:MaterialSideNav><br/> |
102 | | - </demo:PrettyPre> |
103 | | - <!-- CARD PERMANENT --> |
104 | | - <m:MaterialTitle title="Card Permanent" /> |
| 79 | + <!-- CARD --> |
| 80 | + <m:MaterialTitle title="Card Type" /> |
105 | 81 | <m:MaterialImage addStyleNames="z-depth-1" url="https://cloud.githubusercontent.com/assets/3138071/10065493/bba5e930-623b-11e5-87c8-79dccfdad431.png"/> |
106 | 82 | <demo:PrettyPre addStyleNames="lang-xml z-depth-1"> |
107 | 83 | <m:MaterialNavBar backgroundColor="blue" activates="mysidebar"><br/> |
|
118 | 94 |  </m:MaterialNavSection><br/> |
119 | 95 | </m:MaterialNavBar><br/><br/> |
120 | 96 |
|
121 | | - <m:MaterialSideNav width="300" m:id="mysidebar" type="CARD" closeOnClick="false"><br/> |
122 | | -  <m:MaterialNavBrand href="#Test">Title</m:MaterialNavBrand><br/> |
123 | | -  <m:MaterialLink iconType="INBOX" iconPosition="LEFT" textColor="blue" text="Inbox" /><br/> |
124 | | -  <m:MaterialLink iconType="STARS" iconPosition="LEFT" textColor="grey" text="Starred" /><br/> |
125 | | -  <m:MaterialLink iconType="SEND" iconPosition="LEFT" textColor="grey" text="Sent Mail" /><br/> |
126 | | -  <m:MaterialLink iconType="DRAFTS" iconPosition="LEFT" textColor="grey" text="Drafts" /><br/> |
127 | | -  <m:MaterialLink iconType="MARKUNREAD" iconPosition="LEFT" textColor="grey" text="All Mail" /><br/> |
128 | | - </m:MaterialSideNav><br/> |
129 | | - </demo:PrettyPre> |
130 | | - |
131 | | - <!-- Clip Permanent --> |
132 | | - <m:MaterialTitle title="Clip Permanent" /> |
133 | | - <m:MaterialImage addStyleNames="z-depth-1" url="https://cloud.githubusercontent.com/assets/3138071/10043407/ad5f3cbc-61a7-11e5-9d73-90a5bc176c58.png"/> |
134 | | - <demo:PrettyPre addStyleNames="lang-xml z-depth-1"> |
135 | | - <m:MaterialNavBar backgroundColor="blue" activates="mysidebar"><br/> |
136 | | -  <m:MaterialNavSection textAlign="RIGHT"><br/> |
137 | | -   <m:MaterialTooltip text="Starter"><br/> |
138 | | -    <m:MaterialLink iconType="WHATSHOT" textColor="white"/><br/> |
139 | | -   </m:MaterialTooltip><br/> |
140 | | -   <m:MaterialTooltip text="Starter"><br/> |
141 | | -    <m:MaterialLink iconType="WHATSHOT" textColor="white"/><br/> |
142 | | -   </m:MaterialTooltip><br/> |
143 | | -   <m:MaterialTooltip text="Starter"><br/> |
144 | | -    <m:MaterialLink iconType="WHATSHOT" textColor="white"/><br/> |
145 | | -   </m:MaterialTooltip><br/> |
146 | | -  </m:MaterialNavSection><br/> |
147 | | - </m:MaterialNavBar><br/><br/> |
148 | | - |
149 | | - <m:MaterialSideNav width="300" m:id="mysidebar" type="CLIP" closeOnClick="false"><br/> |
| 97 | + <m:MaterialSideNav width="300" m:id="mysidebar" type="CARD" closeOnClick="false"><br/> |
150 | 98 |  <m:MaterialNavBrand href="#Test">Title</m:MaterialNavBrand><br/> |
151 | 99 |  <m:MaterialLink iconType="INBOX" iconPosition="LEFT" textColor="blue" text="Inbox" /><br/> |
152 | 100 |  <m:MaterialLink iconType="STARS" iconPosition="LEFT" textColor="grey" text="Starred" /><br/> |
|
156 | 104 | </m:MaterialSideNav><br/> |
157 | 105 | </demo:PrettyPre> |
158 | 106 |
|
159 | | - <!-- MINI Persistent --> |
160 | | - <m:MaterialTitle title="Mini Variant Persistent" /> |
| 107 | + <!-- MINI --> |
| 108 | + <m:MaterialTitle title="Mini Type" /> |
161 | 109 | <m:MaterialImage addStyleNames="z-depth-1" url="https://cloud.githubusercontent.com/assets/3138071/10043841/edc85e3e-61aa-11e5-8f78-0ab2e257befd.gif"/> |
162 | 110 | <demo:PrettyPre addStyleNames="lang-xml z-depth-1"> |
163 | 111 | <m:MaterialNavBar backgroundColor="blue" activates="mysidebar"><br/> |
|
174 | 122 |  </m:MaterialNavSection><br/> |
175 | 123 | </m:MaterialNavBar><br/><br/> |
176 | 124 |
|
177 | | - <m:MaterialSideNav width="300" m:id="mysidebar" type="OPEN" closeOnClick="false"><br/> |
| 125 | + <m:MaterialSideNav width="300" m:id="mysidebar" type="MINI" closeOnClick="false"><br/> |
178 | 126 |  <m:MaterialNavBrand href="#Test">Title</m:MaterialNavBrand><br/> |
179 | 127 |  <m:MaterialIcon iconType="INBOX" iconColor="blue"/><br/> |
180 | 128 |  <m:MaterialIcon iconType="STARS" iconColor="blue"/><br/> |
|
184 | 132 | </m:MaterialSideNav><br/> |
185 | 133 | </demo:PrettyPre> |
186 | 134 |
|
187 | | - <!-- Close Persistent --> |
188 | | - <m:MaterialTitle title="Close Persistent" /> |
| 135 | + <!-- PUSH --> |
| 136 | + <m:MaterialTitle title="Push Type" /> |
189 | 137 | <m:MaterialImage addStyleNames="z-depth-1" url="https://cloud.githubusercontent.com/assets/3138071/10043075/f0355e0c-61a4-11e5-8a1c-367a682a8bec.gif"/> |
190 | 138 | <demo:PrettyPre addStyleNames="lang-xml z-depth-1"> |
191 | 139 | <m:MaterialNavBar backgroundColor="blue" activates="mysidebar"><br/> |
|
202 | 150 |  </m:MaterialNavSection><br/> |
203 | 151 | </m:MaterialNavBar><br/><br/> |
204 | 152 |
|
205 | | - <m:MaterialSideNav width="300" m:id="mysidebar" type="CLOSE" closeOnClick="false"><br/> |
| 153 | + <m:MaterialSideNav width="300" m:id="mysidebar" type="PUSH" closeOnClick="false"><br/> |
206 | 154 |  <m:MaterialNavBrand href="#Test">Title</m:MaterialNavBrand><br/> |
207 | 155 |  <m:MaterialLink iconType="INBOX" iconPosition="LEFT" textColor="blue" text="Inbox" /><br/> |
208 | 156 |  <m:MaterialLink iconType="STARS" iconPosition="LEFT" textColor="grey" text="Starred" /><br/> |
|
212 | 160 | </m:MaterialSideNav><br/> |
213 | 161 | </demo:PrettyPre> |
214 | 162 |
|
215 | | - <!-- Close Persistent --> |
216 | | - <m:MaterialTitle title="Collapsible SideNav" description="Using collapsible component you can add easily a sub menu into your sidenav."/> |
| 163 | + <!-- Collapsible --> |
| 164 | + <m:MaterialTitle title="Collapsible Items" description="Using collapsible component you can add easily a sub menu into your sidenav."/> |
217 | 165 | <demo:PrettyPre addStyleNames="lang-xml z-depth-1"> |
218 | | -  <m:MaterialSideNav ui:field="sideNav" m:id="sideBar" width="250" type="OPEN" closeOnClick="false"><br/><br/> |
| 166 | +  <m:MaterialSideNav ui:field="sideNav" m:id="sideBar" width="250" type="FIXED" closeOnClick="false"><br/><br/> |
219 | 167 |  <m:MaterialCollapsible><br/><br/> |
220 | 168 |   <m:MaterialCollapsibleItem><br/> |
221 | 169 |   <m:MaterialCollapsibleHeader waves="DEFAULT"><br/> |
|
239 | 187 | <m:MaterialTitle title="Profile SideNav" description="Attach in sidenav to indicate the user profile information."/> |
240 | 188 | <m:MaterialImage url="https://cloud.githubusercontent.com/assets/3138071/11274662/ccdb1e7c-8f14-11e5-821f-f88eb34ff438.png"/> |
241 | 189 | <demo:PrettyPre addStyleNames="lang-xml z-depth-1"> |
242 | | -  <m:MaterialSideNav type="OPEN" m:id="sideNav" closeOnClick="false" width="280"><br/> |
| 190 | +  <m:MaterialSideNav type="FIXED" m:id="sideNav" closeOnClick="false" width="280"><br/> |
243 | 191 |  <m:MaterialSideProfile url="http://static1.squarespace.com/static/51609147e4b0715db61d32b6/521b97cee4b05f031fd12dde/5519e33de4b06a1002802805/1431718693701/?format=1500w"><br/> |
244 | 192 |   <m:MaterialImage url="http://b.vimeocdn.com/ps/339/488/3394886_300.jpg" /><br/> |
245 | 193 |   <m:MaterialLabel text="GWT Material" textColor="white"/><br/> |
|
0 commit comments