|
32 | 32 | <api-item title="API - md-select"> |
33 | 33 | <p>The following options can be applied to any select:</p> |
34 | 34 |
|
35 | | - <api-table :headings="select.headings" :props="select.props" slot="props" /> |
| 35 | + <api-table :headings="select.props.headings" :props="select.props.props" slot="props" /> |
| 36 | + <api-table :headings="select.events.headings" :props="select.events.props" slot="events" /> |
36 | 37 | </api-item> |
37 | 38 |
|
38 | 39 | <api-item title="API - md-option"> |
|
58 | 59 | mixins: [examples], |
59 | 60 | data: () => ({ |
60 | 61 | select: { |
61 | | - headings: ['Name', 'Description', 'Default'], |
62 | | - props: [ |
63 | | - { |
64 | | - name: 'v-model', |
65 | | - type: 'String|Number|Boolean|Array', |
66 | | - description: 'The model variable to bind the select value', |
67 | | - defaults: 'null' |
68 | | - }, |
69 | | - { |
70 | | - name: 'placeholder', |
71 | | - type: 'String', |
72 | | - description: 'The select placeholder. Similar to HTML5 placeholder attribute.', |
73 | | - defaults: 'null' |
74 | | - }, |
75 | | - { |
76 | | - name: 'required', |
77 | | - type: 'String', |
78 | | - description: 'The select required. Similar to HTML5 required attribute.', |
79 | | - defaults: 'null' |
80 | | - }, |
81 | | - { |
82 | | - name: 'id', |
83 | | - type: 'String', |
84 | | - description: 'The select id. Similar to HTML5 id attribute.', |
85 | | - defaults: 'null' |
86 | | - }, |
87 | | - { |
88 | | - name: 'name', |
89 | | - type: 'String', |
90 | | - description: 'The select name. Similar to HTML5 name attribute.', |
91 | | - defaults: 'null' |
92 | | - }, |
93 | | - { |
94 | | - name: 'disabled', |
95 | | - type: 'Boolean', |
96 | | - description: 'Disable the select and prevent it selection.', |
97 | | - defaults: 'false' |
98 | | - }, |
99 | | - { |
100 | | - name: 'multiple', |
101 | | - type: 'Boolean', |
102 | | - description: 'Create a multi selection with checkboxes inside. Only works with a <code>v-model</code> with an <code>Array</code>', |
103 | | - defaults: 'false' |
104 | | - }, |
105 | | - { |
106 | | - name: 'md-dense', |
107 | | - type: 'Boolean', |
108 | | - description: 'Enable the dense layout', |
109 | | - defaults: 'false' |
110 | | - } |
111 | | - ] |
| 62 | + props: { |
| 63 | + headings: ['Name', 'Description', 'Default'], |
| 64 | + props: [ |
| 65 | + { |
| 66 | + name: 'v-model', |
| 67 | + type: 'String|Number|Boolean|Array', |
| 68 | + description: 'The model variable to bind the select value', |
| 69 | + defaults: 'null' |
| 70 | + }, |
| 71 | + { |
| 72 | + name: 'placeholder', |
| 73 | + type: 'String', |
| 74 | + description: 'The select placeholder. Similar to HTML5 placeholder attribute.', |
| 75 | + defaults: 'null' |
| 76 | + }, |
| 77 | + { |
| 78 | + name: 'required', |
| 79 | + type: 'String', |
| 80 | + description: 'The select required. Similar to HTML5 required attribute.', |
| 81 | + defaults: 'null' |
| 82 | + }, |
| 83 | + { |
| 84 | + name: 'id', |
| 85 | + type: 'String', |
| 86 | + description: 'The select id. Similar to HTML5 id attribute.', |
| 87 | + defaults: 'null' |
| 88 | + }, |
| 89 | + { |
| 90 | + name: 'name', |
| 91 | + type: 'String', |
| 92 | + description: 'The select name. Similar to HTML5 name attribute.', |
| 93 | + defaults: 'null' |
| 94 | + }, |
| 95 | + { |
| 96 | + name: 'disabled', |
| 97 | + type: 'Boolean', |
| 98 | + description: 'Disable the select and prevent it selection.', |
| 99 | + defaults: 'false' |
| 100 | + }, |
| 101 | + { |
| 102 | + name: 'multiple', |
| 103 | + type: 'Boolean', |
| 104 | + description: 'Create a multi selection with checkboxes inside. Only works with a <code>v-model</code> with an <code>Array</code>', |
| 105 | + defaults: 'false' |
| 106 | + }, |
| 107 | + { |
| 108 | + name: 'md-dense', |
| 109 | + type: 'Boolean', |
| 110 | + description: 'Enable the dense layout', |
| 111 | + defaults: 'false' |
| 112 | + } |
| 113 | + ], |
| 114 | + }, |
| 115 | + events: { |
| 116 | + headings: ['Name', 'Description', 'Value'], |
| 117 | + props: [ |
| 118 | + { |
| 119 | + name: 'md-selected', |
| 120 | + description: 'Triggered when model changes.', |
| 121 | + value: 'Value of v-model' |
| 122 | + }, |
| 123 | + { |
| 124 | + name: 'md-opened', |
| 125 | + description: 'Triggered when select is opened.', |
| 126 | + value: 'none' |
| 127 | + }, |
| 128 | + { |
| 129 | + name: 'md-closed', |
| 130 | + description: 'Triggered when select is closed.', |
| 131 | + value: 'none' |
| 132 | + } |
| 133 | + ] |
| 134 | + } |
112 | 135 | }, |
113 | 136 | option: { |
114 | 137 | headings: ['Name', 'Description', 'Default'], |
|
0 commit comments