/
MiniExpandSideNavView.ui.xml
57 lines (53 loc) · 2.49 KB
/
MiniExpandSideNavView.ui.xml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!--
#%L
GwtMaterial
%%
Copyright (C) 2015 - 2016 GwtMaterialDesign
%%
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#L%
-->
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:m='urn:import:gwt.material.design.client.ui'
xmlns:ma="urn:import:gwt.material.design.addins.client"
>
<ui:style gss="true">
body {
background: #e9e9e9;
}
</ui:style>
<m:MaterialPanel>
<m:MaterialHeader ui:field="header">
<m:MaterialNavBar activates="sidenavMiniExpand" backgroundColor="BLUE" shadow="1">
<m:MaterialNavBrand paddingLeft="60" text="gwt-material" />
</m:MaterialNavBar>
</m:MaterialHeader>
<m:MaterialSideNavMini m:id="sidenavMiniExpand" ui:field="sideNav" width="300" expandable="true" expandOnClick="true">
<m:MaterialLink iconType="INBOX" text="Inbox">
<m:MaterialBadge text="1 new" />
</m:MaterialLink>
<m:MaterialLink iconType="SEND" text="Send Mail"/>
<m:MaterialLink iconType="DRAFTS" text="Drafts"/>
<m:MaterialLink iconType="MAIL" text="All Mail"/>
<m:MaterialLink iconType="DELETE" text="Trash"/>
<m:MaterialLink iconType="INFO_OUTLINE" text="Spam"/>
</m:MaterialSideNavMini>
<m:MaterialContainer>
<m:MaterialRow textAlign="CENTER" paddingTop="40">
<m:MaterialImage url="http://i.imgur.com/7JpG0F4.gif" />
<m:MaterialFAB>
<m:MaterialButton type="FLOATING" href="https://github.com/GwtMaterialDesign/gwt-material-patterns/blob/release_2.0/src/main/java/com/github/gwtmaterialdesign/client/application/sidenavminiexpand/MiniExpandSideNavView.ui.xml" target="_blank" backgroundColor="PINK" size="LARGE" iconType="CODE" />
</m:MaterialFAB>
</m:MaterialRow>
</m:MaterialContainer>
</m:MaterialPanel>
</ui:UiBinder>