New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-dropdown-select

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-dropdown-select

Multiple Dropdown Select - You can use this angular-dropdown-select apart from data tables as well.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64
increased by137.04%
Maintainers
0
Weekly downloads
 
Created
Source

Angular Dropdown Select

Multiple Dropdown Select - You can use this angular-dropdown-select apart from data tables as well.


Angular Dropdown Select

Instance: A way to bind it with tables.

Installation

npm i angular-dropdown-select

Usage

Import

import { AngularDropdownSelectModule } from 'angular-dropdown-select';

Fundamental Usage

<lib-angular-dropdown-select 
      [headings]="headings" 
      [extras]="extras" 
      (onCheckBoxStatusChanged)="selectedColumnChange($event)" 
      (onUnselectAll)="getStatusOfUnselectedAll($event)">
</lib-angular-dropdown-select>

Configuration - Props

  selectedColumnChange(event: any){
    console.log(event);
  }

  getStatusOfUnselectedAll(event: any){
    console.log(event);
  }

headings = [
      { id: 1, name: 'id', checked: true },
      { id: 2, name: 'name', checked: true },
      { id: 3, name: 'age', checked: false },
      { id: 4, name: 'email', checked: true },
      { id: 5, name: 'emp_number', checked: true }
];

extras = {
      uncheckAllStatus: false,
      dropdownButtonText: 'Title'
}

Fundamentals / Mandatories

Property/MethodTypeDescription
headings.idnumberIDs of dropdown select items
headings.namestringNames of dropdown select items Or Headings of table shown in example
headings.checkedbooleanStatus/Visibility of dropdown select
extras.uncheckAllStatusbooleanBoolean flag to handle all checked/unchecked state
extras.dropdownButtonTextbooleanTo update Button text, else default text is 'Table Columns'
selectedColumnChange(e)methodRecieve emitted value for "onCheckBoxStatusChanged"
getStatusOfUnselectedAll(e)methodRecieve emitted value for "onUnselectAll"

Future Plans

  • More decorative Approach in terms of CSS.
  • Will come up with search functionality.

Author

Suraj Motwani - Email: suraj.motwani1306@gmail.com

License

Angular Dropdown Select is available under the MIT license. See the LICENSE file for more info.

Keywords

FAQs

Package last updated on 12 Aug 2024

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