|
848 | 848 | </div>
|
849 | 849 | </example-box>
|
850 | 850 |
|
851 |
| - <example-box card-title="Expansion Lists"> |
| 851 | + <example-box card-title="Controls"> |
852 | 852 | <div slot="demo">
|
853 | 853 | <div class="phone-viewport">
|
| 854 | + <md-toolbar md-theme="white"> |
| 855 | + <span class="md-title">Multiple options</span> |
| 856 | + </md-toolbar> |
| 857 | + |
| 858 | + <md-list> |
| 859 | + <md-list-item>Plain Text</md-list-item> |
| 860 | + <md-list-item target="_blank" href="https://google.com">Link</md-list-item> |
| 861 | + <md-list-item @click.native="openAlert">Button</md-list-item> |
| 862 | + <md-list-item> |
| 863 | + <router-link to="/components/list">Router View</router-link> |
| 864 | + </md-list-item> |
| 865 | + </md-list> |
| 866 | + </div> |
| 867 | + |
| 868 | + <div class="phone-viewport"> |
| 869 | + <md-toolbar md-theme="white"> |
| 870 | + <span class="md-title">Single Expand</span> |
| 871 | + </md-toolbar> |
| 872 | + |
| 873 | + <md-list> |
| 874 | + <md-list-item> |
| 875 | + <md-icon>whatshot</md-icon> |
| 876 | + <span>News</span> |
| 877 | + |
| 878 | + <md-list-expand> |
| 879 | + <md-list> |
| 880 | + <md-list-item class="md-inset">World</md-list-item> |
| 881 | + <md-list-item class="md-inset">Americas</md-list-item> |
| 882 | + <md-list-item class="md-inset">Europe</md-list-item> |
| 883 | + </md-list> |
| 884 | + </md-list-expand> |
| 885 | + </md-list-item> |
| 886 | + |
| 887 | + <md-list-item> |
| 888 | + <md-icon>videogame_asset</md-icon> |
| 889 | + <span>Games</span> |
| 890 | + |
| 891 | + <md-list-expand> |
| 892 | + <md-list> |
| 893 | + <md-list-item class="md-inset">Console</md-list-item> |
| 894 | + <md-list-item class="md-inset">PC</md-list-item> |
| 895 | + <md-list-item class="md-inset">Phone</md-list-item> |
| 896 | + </md-list> |
| 897 | + </md-list-expand> |
| 898 | + </md-list-item> |
| 899 | + |
| 900 | + <md-list-item> |
| 901 | + <md-icon>video_library</md-icon> |
| 902 | + <span>Video</span> |
| 903 | + |
| 904 | + <md-list-expand> |
| 905 | + <md-list> |
| 906 | + <md-list-item class="md-inset">Humor</md-list-item> |
| 907 | + <md-list-item class="md-inset">Music</md-list-item> |
| 908 | + <md-list-item class="md-inset">Movies</md-list-item> |
| 909 | + <md-list-item class="md-inset">TV Shows</md-list-item> |
| 910 | + </md-list> |
| 911 | + </md-list-expand> |
| 912 | + </md-list-item> |
| 913 | + |
| 914 | + <md-list-item> |
| 915 | + <md-icon>shopping_basket</md-icon> |
| 916 | + <span>Shop</span> |
| 917 | + </md-list-item> |
| 918 | + </md-list> |
| 919 | + </div> |
| 920 | + |
| 921 | + <div class="phone-viewport"> |
| 922 | + <md-toolbar md-theme="white"> |
| 923 | + <span class="md-title">Multiple Expand</span> |
| 924 | + </md-toolbar> |
| 925 | + |
854 | 926 | <md-list>
|
855 | 927 | <md-list-item md-expand-multiple>
|
856 | 928 | <md-icon>whatshot</md-icon>
|
|
960 | 1032 |
|
961 | 1033 | <style lang="sass" scoped>
|
962 | 1034 | .phone-viewport {
|
963 |
| - height: 400px; |
| 1035 | + height: 480px; |
964 | 1036 | }
|
965 | 1037 |
|
966 | 1038 | .custom-list {
|
|
969 | 1041 | }
|
970 | 1042 | }
|
971 | 1043 | </style>
|
| 1044 | + |
| 1045 | +<script> |
| 1046 | + export default { |
| 1047 | + methods: { |
| 1048 | + openAlert() { |
| 1049 | + window.alert('...'); |
| 1050 | + } |
| 1051 | + } |
| 1052 | + }; |
| 1053 | +</script> |
0 commit comments