Render carousel without buttons


#1

hello i have a question about rendering a carousel in renderer.js

is it posible to render a carousel with just cards without buttons just like the built in carousel?


#2

Also is it possible to set a value for each card and then store/retrieve it?


#3

is it posible to render a carousel with just cards without buttons just like the built in carousel?

For sure. You can create a carousel-renderer with no buttons in it. E.g. smth like this:

  '#login-gate': data => {
    return [
      {
        on: 'webchat',
        type: 'carousel',
        typing: '1s',
        text: 'You have to login before we can continue',
        settings: {
          responsive: [{ breakpoint: 400, settings: { slidesToShow: 1 } }]
        },
        elements: [
          {
            title: 'Restricted Access',
            subtitle: 'You have to login before we can continue',
            buttons: []
          }
        ]
      }
    ]
  },

Also is it possible to set a value for each card and then store/retrieve it?

Hm… It is possible to create actions that would store/retrieve data. And you can add action-buttons to carousel that will redirect to given nodes with actions. Would this work?