matsura / ng2-dual-list-box

A dual list box component for Angular 4
http://ng2-duallistbox-demo.surge.sh/
28 stars 20 forks source link

can I change the words "Available Items" and "Selected items" #42

Open belalothman opened 4 years ago

belalothman commented 4 years ago

I need translate the words "Available Items" and "Selected items" or delete them because I am working on Dutch software

venkateshjaicha commented 4 years ago

Is there any possible solution? I also need to use custom text on listbox.The only way i could change is by editing directly in the package. Thank you.

malathi-u commented 4 years ago

I used availableText and selectedText attribute to change the words "Available Items" and "Selected items" respectively.

venkateshjaicha commented 4 years ago

I used availableText and selectedText attribute to change the words "Available Items" and "Selected items" respectively.

thanks for the reply,let me check with it

an0nh4x0r commented 4 years ago
                        <ng2-dual-list-box [data]="items" valueField="id" textField="name"
                            (onAvailableItemSelected)="log($event)" (onSelectedItemsSelected)="log($event)"
                            (onItemsMoved)="log($event)" [(ngModel)]="selected" availableText="Available Merchants"
                            selectedText="Selected Merchants">

                        </ng2-dual-list-box>