1.0.4 • Published 10 months ago

angular-dropdown-select v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Angular Dropdown Select

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.

1.0.2

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago