It's possible to generate toolbar item based on array of object as below sample? I try but I hit v-for & v-if not allowed to use together.
[
{
id: 0,
type: "buttonGroup",
text: "group1",
icon: "",
enabled: "true",
togglable: "false",
overflow: "auto",
items: [
{
text: "G1button1",
icon: "",
title: "button1",
enabled: "true",
togglable: "true",
},
{
text: "G1button2",
icon: "",
title: "button2",
enabled: "true",
togglable: "true",
},
],
},
{
id: 1,
type: "splitButton",
text: "splitButton1",
icon: "",
enabled: "true",
togglable: "false",
overflow: "auto",
items: [
{
text: "Insert above",
icon: "insert-up",
title: "Insert above",
enabled: "true",
togglable: "true",
},
{
text: "Insert between",
icon: "insert-middle",
title: "Insert between",
enabled: "true",
togglable: "true",
},
{
text: "Insert below",
icon: "insert-down",
title: "Insert below",
enabled: "true",
togglable: "true",
},
],
},
{
id: 2,
type: "button",
text: "Button1",
icon: "",
enabled: "true",
togglable: "true",
overflow: "auto",
items: [],
},
{
id: 3,
type: "separator",
text: "",
icon: "",
enabled: "true",
togglable: "false",
overflow: "auto",
items: [],
},
{
id: 4,
type: "button",
text: "Button2",
icon: "",
enabled: "false",
togglable: "true",
overflow: "always",
items: [],
},
]