[Vuejs]-How to pass boolean attributes into Vue render function data object?

0👍

Can you pass it as a prop and then use it? You can try like this I think. (Untested)

render(createElement) {
    return createElement('f7-list', {
      props: {
        'attrs': {'accordion':true}
      }
    })
 }

Or perhaps simply

render(createElement) {
    return createElement('f7-list', {
      attrs: {
        'accordion': true
      }
    })
 }

Leave a comment