Socket
Socket
Sign inDemoInstall

@assaabloy/gw-group-accordion

Package Overview
Dependencies
0
Maintainers
14
Versions
175
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @assaabloy/gw-group-accordion

Web component - Accordion


Version published
Maintainers
14
Install size
105 kB
Created

Readme

Source

ASSA ABLOY Global web - web components

Accordion

Custom HTML element

<gw-group-accordion content="" theme=""></gw-group-accordion>

Properties

NameTypeDescription
contentStringbase64 encoded object
themeString

content

{
  "title": "", // NEW
  "text": "", // NEW
  "sections": [
    {
      "title": "Specifications 1",
      "layout": "1-large" | "1-small" | "2-small",
      "column1": {
        "text": "", // NEW
        "table": <table>, // NEW
        "assetsAndLinks": <assetsAndLinks>[] // NEW

      },
      "column2": {
        "type": "richText" | "assetsAndLinks" | "table", // REMOVED
        "content": "<p>Some richtext <b>content</b>.</p>" | "[<AssetsAndLinks>]" // REMOVED
        "text": "", // NEW
        "table": <table>, // NEW
        "assetsAndLinks": <assetsAndLinks>[] // NEW
      }
    },
  ]
  "config": {
    "padding": {
      "bottom": false,
      "top": true
    }
  }
}

assetsAndLinks

{
  "title": "Technical guidelines",
  "links": [
    {
      "title": "Yale",
      "url": "https://www.assaabloy.com/some-document",
      "asset": false,
      "external": false,
      "fileSize": 1000
    },
  ]
}

table For the table to be generated correctly the keys in tableColumns and tableItems can be whatever but they have to match.

{
  "tableColumns": [
    {
      "name": "Displayed text"
      "key": "Match with tableitem key"
      "position": "1"
    },
    {
      "name": "Barcode"
      "key": "barcode"
      "position": "1"
    },
    {
      "name": "Description"
      "key": "description"
      "position": "2"
    },
    {
      "name": "Part number"
      "key": "partNumber"
      "position": "2"
    }
  ],
  "tableItems": [
    {
      "barcode": "Barcode 1",
      "description": "Description 1",
      "partNumber": "Part Number 1"
    },
    {
      "barcode": "Barcode 2",
      "description": "Description 2",
      "partNumber": "Part Number 2"
    }
  ]
}

theme Two different background options:

  • "theme-alt-1" (white)
  • "theme-alt-2" (grey)

Dependencies @assaabloy/gw-group-vendor @assaabloy/brand-styles

FAQs

Last updated on 21 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc