🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

buttons-toggle-selection

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

buttons-toggle-selection

This Angular component (`ListDisplaySelectionComponent`) is responsible for displaying and managing a list of items with selection capabilities.

0.0.1
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Button Toggle Selection Component

This Angular component (ListDisplaySelectionComponent) is responsible for displaying and managing a list of items with selection capabilities.

Usage

Input Properties

  • multiple: boolean: Indicates if multiple selections are allowed.
  • toolTipPosition: 'below' | 'above' | 'left' | 'right': Position of the tooltip for the selection component.
  • data: ListItem[]: Array of ListItem objects for display.
  • selected?: string|null: Currently selected item.

Usage Example

Lifecycle Hooks Implemented

ControlValueAccessor: Provides control and value accessor for Angular forms.

Setup Data Structure

Model to use - ListItem

  • value: any
  • label?: string
  • icon?: string
  • tootTip?: string

Sample Data

const groupOptions: ListItem[] = [
    { label: 'Sample', value: 'test', icon: 'add' },
    { value: 'list', icon: 'list' },
    { value: 'list', label: 'me' },
    { label: '', value: 'grid', icon: 'grid_on', tootTip: 'Grid View'},
  ]

  or

  const groupOptions = ['store', 'data', 'type', 'expiresIn', 'options']

Sample Component Usage

<app-list-display-selection
  [formControl]="selectedDisplay"
  [data]="groupOptions"
></app-list-display-selection>

FAQs

Package last updated on 17 Feb 2025

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