Is it possible to bind mixin arguments to a vue instance?
I have this mixin to render a table:
mixin table(header,data,type)
- var type = type || ""
table.table(class=type)
thead
tr
each head, i in header
th #{head}
tbody
each row,j in data
tr
each col,k in row
td #{col}
Which can be used normally like this:
+table-striped(["#","First Name","Last Name","Username"],[["1","Mark","Otto","@mdo"],["2","Jacob","Thornton","@fat"],["3","Larry","the Bird","@twitter"]])
My question is if it is possible to take the 'header' and 'data' arguments of the mixin from a vue instance.