|
39 | 39 | </m:MaterialRow> |
40 | 40 |
|
41 | 41 | <m:MaterialRow addStyleNames="code"> |
42 | | - <m:MaterialTitle title="Toast with Action" description="rovides an advance toast with any widget (MaterialLink) for declaration of actions when toast is applied."/> |
| 42 | + <m:MaterialTitle title="Toast with Action" description="Provides an advance toast with any widget (MaterialLink) for declaration of actions when toast is applied."/> |
43 | 43 | <m:MaterialButton text="Toast Me" waves="LIGHT" ui:field="btnToastAction" addStyleNames="{style.btn}"/> |
44 | 44 | <demo:PrettyPre addStyleNames="lang-java"> |
45 | 45 |  MaterialLink link = new MaterialLink("UNDO");<br/> |
|
158 | 158 | </m:MaterialModal><br/> |
159 | 159 | </demo:PrettyPre> |
160 | 160 | </m:MaterialRow> |
| 161 | + |
| 162 | + <m:MaterialRow addStyleNames="code"> |
| 163 | + <m:MaterialTitle title="Modal : Events" description="We have provided an open / close events for modal component." /> |
| 164 | + <m:MaterialModal ui:field="modalEvents" type="FIXED_FOOTER" dismissible="true" inDuration="500" outDuration="500"> |
| 165 | + <m:MaterialModalContent> |
| 166 | + <m:MaterialTitle title="Modal with Events" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum" /> |
| 167 | + </m:MaterialModalContent> |
| 168 | + <m:MaterialModalFooter> |
| 169 | + <m:MaterialButton text="Close Modal" type="FLAT" ui:field="btnCloseModalEvents"/> |
| 170 | + </m:MaterialModalFooter> |
| 171 | + </m:MaterialModal> |
| 172 | + <m:MaterialButton text="Modal with Events" ui:field="btnEvents" waves="LIGHT"/> |
| 173 | + </m:MaterialRow> |
| 174 | + |
| 175 | + <m:MaterialRow addStyleNames="code"> |
| 176 | + <m:MaterialTitle title="Modal : Multiple Instances" description="You can easily add multiple instances of modal. And we handle the z-index throught ModalManager for the calculation." /> |
| 177 | + <!-- Modal 1 --> |
| 178 | + <m:MaterialModal ui:field="modal1" type="FIXED_FOOTER"> |
| 179 | + <m:MaterialModalContent> |
| 180 | + <m:MaterialTitle title="Modal 1" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum" /> |
| 181 | + </m:MaterialModalContent> |
| 182 | + <m:MaterialModalFooter> |
| 183 | + <m:MaterialButton text="Open Modal 2" type="FLAT" ui:field="btnOpenModal2"/> |
| 184 | + <m:MaterialButton text="Close Modal 1" type="FLAT" ui:field="btnCloseModal1"/> |
| 185 | + </m:MaterialModalFooter> |
| 186 | + </m:MaterialModal> |
| 187 | + <!-- Modal 2 --> |
| 188 | + <m:MaterialModal ui:field="modal2" type="FIXED_FOOTER"> |
| 189 | + <m:MaterialModalContent> |
| 190 | + <m:MaterialTitle title="Modal 2" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum" /> |
| 191 | + </m:MaterialModalContent> |
| 192 | + <m:MaterialModalFooter> |
| 193 | + <m:MaterialButton text="Open Modal 3" type="FLAT" ui:field="btnOpenModal3"/> |
| 194 | + <m:MaterialButton text="Close Modal 2" type="FLAT" ui:field="btnCloseModal2"/> |
| 195 | + </m:MaterialModalFooter> |
| 196 | + </m:MaterialModal> |
| 197 | + <!-- Modal 3 --> |
| 198 | + <m:MaterialModal ui:field="modal3" type="FIXED_FOOTER"> |
| 199 | + <m:MaterialModalContent> |
| 200 | + <m:MaterialTitle title="Modal 3" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum" /> |
| 201 | + </m:MaterialModalContent> |
| 202 | + <m:MaterialModalFooter> |
| 203 | + <m:MaterialButton text="Close Modal 3" type="FLAT" ui:field="btnCloseModal3"/> |
| 204 | + </m:MaterialModalFooter> |
| 205 | + </m:MaterialModal> |
| 206 | + |
| 207 | + <m:MaterialButton text="Open Modal 1" ui:field="btnOpenModal1" waves="LIGHT"/> |
| 208 | + </m:MaterialRow> |
161 | 209 |
|
162 | 210 | <m:MaterialRow addStyleNames="code"> |
163 | 211 | <m:MaterialTitle title="Tooltip" description="Tooltips are small, interactive, textual hints for mainly graphical elements. When using icons for actions you can use a tooltip to give people clarification on its function."/> |
|
0 commit comments