Advanced: Data Attributes for Widgets
Data Attributes
Data attributes are used on the widget to configure options for the display of classes. Here are the potential data attributes available for use.
Attribute | Details |
---|---|
data-cs-max-classes | Max number of classes to be returned. Default is 5. |
data-cs-fields | A comma-separated list of fields to be returned. NOTE: When using multiple values, do not put a space between each value in the comma-separated list. Spaces between the values will cause the widget to malfunction. Possible values:
|
data-cs-category-id | The category ID for which you'd like to display classes. (optional) |
data-cs-sort | How you would like the results sorted. Possible values:
|
Styling
The CourseStorm widget can be styled to reflect the look and feel of your site. For more information, see our advanced support article on Styling the Class List Widget.