audiencecomponent
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i audiencecomponent

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

306 kB

Total Files

47

Last publish

Collaborators

  • nicbot25
  • stevenaza
  • joshiracing
  • c.rojasj