ngx-treeview-bambam
TypeScript icon, indicating that this package has built-in type declarations

6.0.7 • Public • Published

ngx-treeview-bambam

An Angular treeview component with checkbox

Dependencies

Features

  • Unlimited tree level
  • State: disabled / collapse, expand
  • Filtering
  • Internationalization (i18n) support
  • Template
  • Checkbox with tri-state

Installation

After install the above dependencies, install ngx-treeview-bambam via:

npm install ngx-treeview-bambam --save

Once installed you need to import our main module in your application module:

import { TreeviewModule } from 'ngx-treeview-bambam';
 
@NgModule({
  declarations: [AppComponent, ...],
  imports: [TreeviewModule.forRoot(), ...],  
  bootstrap: [AppComponent]
})
export class AppModule {
}

Usage

Treeview:

<ngx-treeview
    [config]="config"
    [items]="items"
    (selectedChange)="onSelectedChange($event)"
    (filterChange)="onFilterChange($event)">
</ngx-treeview>

Treeview with dropdown:

<ngx-dropdown-treeview
    [buttonClass]="buttonClass"
    [config]="config"
    [items]="items"
    (selectedChange)="onSelectedChange($event)"
    (filterChange)="onFilterChange($event)">
</ngx-dropdown-treeview>

config is optional. This is the default configuration:

{
   hasAllCheckBox: true,
   hasFilter: false,
   hasCollapseExpand: false,
   decoupleChildFromParent: false,
   maxHeight: 500
}

Package Sidebar

Install

npm i ngx-treeview-bambam

Weekly Downloads

9

Version

6.0.7

License

MIT

Unpacked Size

107 kB

Total Files

67

Last publish

Collaborators

  • barriosraphael