Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sling-web-component-list

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sling-web-component-list

Sling List component

  • 1.11.3
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

sling-web-component-list

Sling Card Basic Component.

Install

npm install sling-web-component-list

Tag

  <sling-list></sling-list>

Dependencies

  • sling-framework
  • sling-helpers

Attributes and properties

NameTypeDefault ValuesReflectToAttributeObservercallSdk
srcdataArray
srckeysArray
cascadelistBooleanfalse:heavy_check_mark:

Description

NameDescription
srcdataUma lista que define o conteudo do componente..
srckeysUma lista de chaves que dispõe com base na lista de dados a ordem dos dados.
cascadelistDefine se a lista vai ser em cascata ou não.

Events

This component have no events.

Usage

    <sling-list
      srcdata=""
      srckeys="">
    </sling-list>

    <script>
      const keys = [
        'Descrição',
        'UF',
        'Cidade',
        'Endereço',
        'Número',
        'Complemento',
        'Bairro',
      ];

      const data = [
        {
          Descrição: 'teste',
          UF: 'teste',
          Cidade: 'teste',
          Endereço: 'teste',
          Número: 'teste',
          Complemento: 'teste',
          Bairro: 'teste',
        },
      ]

      const $list = Array.from(document.querySelectorAll('sling-list'));
      $list.forEach($list=> {
        $list.srcdata = data;
        $list.srckeys = keys;
      });
    </script>

image

FAQs

Package last updated on 05 Nov 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc