You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/app/components/pages/components/lists.jsx
+38-3Lines changed: 38 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ var React = require('react');
2
2
varmui=require('mui');
3
3
varAvatar=mui.Avatar;
4
4
varCheckbox=mui.Checkbox;
5
+
varToggle=mui.Toggle;
5
6
varColors=mui.Styles.Colors;
6
7
varList=mui.List;
7
8
varListDivider=mui.ListDivider;
@@ -53,7 +54,8 @@ class ListsPage extends React.Component {
53
54
secondaryText={
54
55
<p>
55
56
<span style={{color: Colors.darkBlack}}>Brunch this weekend?</span><br/>
56
-
I'll be in your neighborhood doing errands this weekend. Do you want to grab brunch?
57
+
I'll be in your neighborhood doing errands this weekend.
58
+
Do you want to grab brunch?
57
59
</p>
58
60
}
59
61
secondaryTextLines={2}>
@@ -145,7 +147,7 @@ class ListsPage extends React.Component {
145
147
name: 'disableTouchTap',
146
148
type: 'bool',
147
149
header: 'default: false',
148
-
desc: 'If true, the list-item will not be clickable and will not display hover affects. This is automatically disabled if leftCheckbox is set.'
150
+
desc: 'If true, the list-item will not be clickable and will not display hover affects. This is automatically disabled if leftCheckbox or rightToggle is set.'
149
151
},
150
152
{
151
153
name: 'insetChildren',
@@ -157,7 +159,13 @@ class ListsPage extends React.Component {
157
159
name: 'leftAvatar',
158
160
type: 'element',
159
161
header: 'optional',
160
-
desc: 'This is the avatar element to be displayed on the left side.'
162
+
desc: 'This is the Avatar element to be displayed on the left side.'
163
+
},
164
+
{
165
+
name: 'leftCheckbox',
166
+
type: 'element',
167
+
header: 'optional',
168
+
desc: 'This is the Checkbox element to be displayed on the left side.'
161
169
},
162
170
{
163
171
name: 'leftIcon',
@@ -177,6 +185,12 @@ class ListsPage extends React.Component {
177
185
header: 'optional',
178
186
desc: 'This is the SvgIcon or FontIcon to be displayed on the right side.'
179
187
},
188
+
{
189
+
name: 'rightToggle',
190
+
type: 'element',
191
+
header: 'optional',
192
+
desc: 'This is the Toggle element to display on the right side.'
193
+
},
180
194
{
181
195
name: 'secondaryText',
182
196
type: 'node',
@@ -373,6 +387,27 @@ class ListsPage extends React.Component {
0 commit comments