size property

  1. @HostBinding('attr.size')
  2. @Input()
String size
getter/setter pair

Preset width, 1 through 5. By default, the material list will expand to the full width of its parent.

Note: The spec clearly lays out predefined list sizes so use the default, expanding size, sparingly. Each width multiplies the base block width (64px on desktop and tablet) by 1.5, 3, 5, 6, 7, respectively to obtain a predictable width. Set to 0 to have the list expand to the full width of its parent.

Implementation

@HostBinding('attr.size')
@Input()
String size = MaterialListSize.auto;