File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,31 @@ <h2>Line scenarios</h2>
243
243
</ mat-list-item >
244
244
</ mat-list >
245
245
246
+ < mat-selection-list >
247
+ < mat-list-option > Title</ mat-list-option >
248
+ < mat-list-option lines ="2 ">
249
+ < span matListItemTitle > Title</ span >
250
+ < span > This is unscoped text content that is supposed to not wrap. The list has only
251
+ acquired two lines and therefore there is no space for wrapping.</ span >
252
+ </ mat-list-option >
253
+ < mat-list-option lines ="3 ">
254
+ < span matListItemTitle > Title</ span >
255
+ < span > This is unscoped text content that is supposed to wrap to the third line.
256
+ The list item acquire spaces for three lines and text should have an ellipsis in the
257
+ third line upon text overflow.</ span >
258
+ </ mat-list-option >
259
+ < mat-list-option >
260
+ < span matListItemTitle > Title</ span >
261
+ < span > This is unscoped text content that is supposed to not wrap. The list has only
262
+ acquired two lines (automatically) and therefore there is no space for wrapping.</ span >
263
+ </ mat-list-option >
264
+ < mat-list-option >
265
+ < span matListItemTitle > Title</ span >
266
+ < span matListItemLine > Secondary line</ span >
267
+ < span matListItemLine > Tertiary line</ span >
268
+ </ mat-list-option >
269
+ </ mat-selection-list >
270
+
246
271
< button mat-raised-button (click) ="showBoxes = !showBoxes "> Show item boxes</ button >
247
272
</ div >
248
273
You can’t perform that action at this time.
0 commit comments