
Cards are the first type of special renderings provided by Genio with full customization capability. In certain occasions, cards can enhance the user experience by displaying the information in a way that looks fresh and different.
The card component offers various variants, each offering unique visual styles and layouts. Currently, Genio includes the following card subtypes:
card
card-img-top
card-img-thumbnail![]()
card-img-background
To enhance the level of customization for each individual card subtype, Genio provides developers with powerful customization variables. These variables grant fine-grained control over a wide range of aspects, including the appearance and behavior of the cards. With the flexibility offered by these customization variables, developers can precisely tailor the rendering process to meet their specific requirements.
card-bg-color
* the bg-primary and bg-secondary options use the values of the CSS primary and secondary variables, respectively.
text-color
actions-btn-placement
actions-btn-float
actions-btn-style
align-center
card-img-top-shape
show-column-titles
| Name | Type | Description | Mandatory | Allows Multiple Mappings | Admitted Values | Default | Platforms |
|---|---|---|---|---|---|---|---|
| title | Mapping | The title of the card. Best when mapped to a short text field | Yes | No | Table column | - | MVC, VUE |
| subtitle | Mapping | The subtitle of the card. Best when mapped to a short text field | No | No | Table column | - | MVC, VUE |
| text | Mapping | The main text of the card. Best when mapped to a text field | No | Yes | Table column | - | MVC, VUE |
| image | Mapping | An image at the top of the card. Must be mapped to an image field | No | No | Table column | - | MVC, VUE |
| btn-href | Mapping | Defines the target of the card button. Currently works best when mapped to a hyperlink text field | No | No | Table column | - | MVC |
| custom-followup | Mapping | Overrides the followup obtained from the menu structure. Must be mapped to a text field that contains the URL of the target page | No | No | Table column | - | MVC |
| background-color | Style | The background color of the card | No | - | auto, bg-primary, bg-secondary, bg-danger |
auto |
MVC, VUE |
| actions-placement | Style | Specifies if the action buttons are placed on the header or on the footer of the card | No | - | header, footer |
header |
MVC, VUE |
| actions-alignment | Style | Sets the alignment of the action buttons | No | - | left, right |
left |
MVC, VUE |
| actions-style | Style | Defines if the action buttons are displayed as a single button (dropdown) or as individual buttons (inline) | No | - | dropdown, inline |
dropdown |
VUE |
| content-alignment | Style | Defines whether the card's contents are center-aligned horizontally | No | - | left, center |
left |
MVC, VUE |
| image-shape | Style | Defines whether the card's top image is a square or a rectangle | No | - | rectangular, square, circular |
rectangular |
MVC, VUE |
| hover-scale-amount | Style | Configures the amount of scale when hovering the card | No | - | 1.00, 1.01, 1.02, 1.03, 1.04, 1.05 |
1.05 |
MVC, VUE |
| show-column-titles | Style | Defines whether the titles of the columns are displayed next to the contents (only applies to card-text) | No | - | true, false |
true |
MVC, VUE |
| show-empty-column-titles | Style | Defines whether the titles of the columns are displayed next to the empty contents (only applies to card-text) | No | - | true, false |
true |
MVC, VUE |
| size | Style | Defines the size of the card (by category) | No | - | regular, small |
regular |
MVC, VUE |
| container-alignment | Style | Defines the alignment of the cards along the container's main axis | No | - | left, center |
left |
MVC, VUE |
| display-mode | Style | Defines the display mode of the cards | No | - | grid, carousel |
grid |
VUE |
The complete changelog of all notable changes made to Special Renderings - Cards. Descriptions are written as New: or Fixed: for changes that are not considered a maintenance release.
display mode style variablecards-alignment style variablecard-followup mapping variablecard-horizontal card subtypeshow-empty-column-titles style variablecard-size special rendering variableshow-column-titles style variablecard-img-background card subtypehover-scale-amount style variablecard-img-top, card-centered and card-img-thumbnail subtypescard-subtitle, card-img-placement and align-center special rendering variablesbtn-href-float special rendering variable