1.0.13 • Published 4 years ago

cubex-multiselect-dropdown v1.0.13

Weekly downloads
74
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

Installation

npm install --save cubex-multiselect-dropdown

Usage

import { MultiselectDropdownModule } from 'cubex-multiselect-dropdown';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    MultiselectDropdownModule, ########'Cubex Dropdown'
  ],
  providers: [],
  bootstrap: [AppComponent]
})

HTML file

<cubex-singleselect-dropdown
   [selectionWidth]="11"
   [width]="111"
   [height]="200" 
   [isOpen]="false" 

   [data]='[ 
         { "name": "Option1", value:"Option1" },
         { "name": "Option2", value:"Option2" },
         { "name": "Option3","value":"Option3" }]'
   [displayKey]="'name'"
   [toggleKey]="'value'"  
   (onChange)="multiselectOnchage($event)" 

   [label]="'Entities'" 
   [placeholder]="'Select an option'"
  >
</cubex-singleselect-dropdown>

////////////////////////////////////////////////////////////////

<cubex-multiselect-dropdown
   [selectionWidth]="11"
   [width]="111"
   [height]="200" 
   [isOpen]="false" 

   [data]='[ 
         { "name": "Option1", value:"Option1" },
         { "name": "Option2", value:"Option2" },
         { "name": "Option3","value":"Option3" }]'
   [displayKey]="'name'"
   [toggleKey]="'value'"  
   (onChange)="singleselectOnchage($event)" 

   [label]="'Entities'" 
   [placeholder]="'Select an option'"
  >
</cubex-multiselect-dropdown>

TS file

  /**
   * singleselectOnchage
   * $event will return selected data [] 
   */
  singleselectOnchage($event){
    console.log($event);
  }
  
 /**
   * multiselectOnchage
   * $event will return selected data [] 
   */
  multiselectOnchage($event){
    console.log($event);
  }
  

License

MIT

Author

Ramesh M (Developer)

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.1

5 years ago