@everymatrix/retail-live-sports
v1.21.38
Published
---------
Downloads
75
Maintainers
Keywords
Readme
@everymatrix/retail-live-sports
Retail Live Carousel 🎡
📝 Widget Params:
- src:
- string (default null):
- Source from where to fetch data
- apiparam:
- string (default "records")
- the key from request response that we want to use as our data
- if set to "" will consider that the response is an array
- can pass nested params with "." ex: data.records
- itemkey:
- string (default "translationKey")
- name of the key that we want to display from each item element
- hastotal:
- string (default "false")
- if set to "true" will fetch 2 times to get all the items from that source
- totalkey:
- string (default "total")
- the name of the key that holds the number of total items
- usually is total but can be changed for different apis
- sort:
- string (default 'false')
- if set to "true" will sort items
- sorting is happening just on the ui, the original data set will remain unsorted
- sortkey:
- string (default 'id')
- name of the key we want to sort based on
- sortdir:
- string (default 'asc')
- direction of sorting can be 'asc' or 'desc'
📡 Widget events:
- item-click (customEvent):
- returns item that was click