0.0.2 • Published 2 years ago

audiencecomponent v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

WebComponent Menu Audiencias

Este webcomponent se utiliza para renderizar una lista con hipervínculos correspondientes al menú de audiencias.

Uso

Después de añadir la url del script correspondiente al webcomponent, Se debe:

  1. Añadir el tag del webcomponent, Este recibe un parametro de tipo JSON, llamado: data:
  <audience-component data=""></audiencecomponent>
  1. 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

0.0.2

2 years ago

0.0.1

2 years ago