Este webcomponent se utiliza para renderizar una lista con hipervínculos correspondientes al menú de audiencias.
Después de añadir la url del script correspondiente al webcomponent, Se debe:
- Añadir el tag del webcomponent, Este recibe un parametro de tipo JSON, llamado: data:
<audience-component data=""></audiencecomponent>
- La estructura de este objeto JSON que recibe, es la siguiente:
[
{
"title": "Internal",
"url": "/",
"weight": "-1",
"options": {
"attributes": {
"class": [],
"target": "_self"
}
},
"has_children": false,
"children": []
},
{
"title": "Test",
"url": "http://example.com",
"weight": "0",
"options": {
"attributes": {
"class": [],
"target": "_blank"
},
"external": true
},
"has_children": false,
"children": []
}
]
© 2022