ResponsiveCards
Configs
1
Configs
1An array of CardSize objects to use as responsive levels based on card widths.
By default, the following levels are defined:
| Width | Name | Cls | Avatars | Items |
|---|---|---|---|---|
| < 50 | micro | b-micro-cards | 1 | Only resource avatars shown |
| < 75 | tiny | b-tiny-cards | 1 | Body text hidden |
| < 175 | small | b-small-cards | 2 | Body text hidden |
| < 300 | medium | b-medium-cards | 3 | |
| > 300 | large | b-large-cards | 7 |
Properties
2
Properties
2Identifies an object as an instance of ResponsiveCards class, or subclass thereof.
Identifies an object as an instance of ResponsiveCards class, or subclass thereof.
Typedefs
1
Typedefs
1An object that describes a card size level.
| Parameter | Type | Description |
|---|---|---|
name | String | Level name, applied to the columns element as CSS class |
maxWidth | Number | Express in px. This level applies above the previous levels maxWidth and up to this value |
maxAvatars | Number | Max number of resource avatars to render, when that feature is used |
headerItems | Object<String, TaskItemOptions> | A config object for items in a card's header, merges with headerItems to determine items for this card size |
bodyItems | Object<String, TaskItemOptions> | A config object for items in a card's header, merges with bodyItems to determine items for this card size |
footerItems | Object<String, TaskItemOptions> | A config object for items in a card's header, merges with footerItems to determine items for this card size |