Angular UI Components Documentation
The Angular PickList moves items between an available list and a selected list, with buttons, a double-click or the keyboard. This guide adds the Angular PickList (jqxPickList) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-ngjqwidgets-ng/jqxpicklist 
In an Angular project (to start one, see Getting started with Angular), add the package with the Angular CLI. It asks for a theme and adds the styles to angular.json:
ng add jqwidgets-ng
Components are standalone: add jqxPickListModule to the imports of the component that uses it.
import { Component } from '@angular/core';
import { jqxPickListModule } from 'jqwidgets-ng/jqxpicklist';
@Component({
selector: 'app-root',
imports: [jqxPickListModule],
templateUrl: './app.html'
})
export class App {}
The source of the live Default Functionality demo.
<div class="demo">
<p class="demo-hint">
Click an item to select it, <kbd>Ctrl</kbd>+click or <kbd>Shift</kbd>+click for several,
then use the arrows. Double-clicking an item moves it straight across.
</p>
<jqxPickList #picklist
[width]="620"
[height]="340"
[source]="columns"
[selectedItems]="initial"
[sourceHeader]="'Available columns'"
[targetHeader]="'Report columns'"
(onChange)="onChange()">
</jqxPickList>
<div class="demo-result">
<strong>Report columns, in order</strong>
<span>{{ selected.length ? selected.join(', ') : 'No columns selected - the report would be empty.' }}</span>
</div>
</div>
import { Component, viewChild } from '@angular/core';
import { jqxPickListComponent } from 'jqwidgets-ng/jqxpicklist';
import { CommonModule } from '@angular/common';
import { jqxPickListModule } from 'jqwidgets-ng/jqxpicklist';
// A report builder: every column the data set has on the left, the columns the report will
// show on the right. The picker keeps the two lists in sync and reports the selection
// through its onChange event.
@Component({
imports: [CommonModule, jqxPickListModule],
selector: 'app-root',
templateUrl: './app.html',
styles: [
`
.demo {
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
font-size: 14px;
max-width: 640px;
}
.demo-hint {
margin: 0 0 12px;
color: light-dark(#555, #9aa3ae);
font-size: 13px;
}
.demo-hint kbd {
font: inherit;
padding: 1px 5px;
border: 1px solid light-dark(#c8c8c8, #3a414b);
border-radius: 4px;
background: light-dark(#f7f7f7, #252a31);
}
.demo-result {
margin-top: 14px;
padding: 10px 12px;
border: 1px solid light-dark(#e0e0e0, #2f353d);
border-radius: 6px;
background: light-dark(#fafafa, #1c2027);
line-height: 1.5;
}
.demo-result strong {
display: block;
margin-bottom: 2px;
font-size: 13px;
}
`
]
})
export class App {
readonly picklist = viewChild.required<jqxPickListComponent>('picklist');
columns: string[] = [
'Order ID',
'Customer',
'Company',
'Country',
'City',
'Product',
'Category',
'Quantity',
'Unit price',
'Discount',
'Total',
'Order date',
'Ship date',
'Status',
'Sales rep',
'Region'
];
initial: string[] = ['Order ID', 'Customer', 'Product', 'Total', 'Order date'];
selected: string[] = this.initial.slice();
onChange(): void {
this.selected = this.picklist().getSelectedItems();
}
}Options are inputs, bound with [name]="value".
Events are outputs named on plus the event name with a capital first letter. For example, change: This event is triggered when the selected items change.
<jqxPickList (onChange)="onChange($event)"></jqxPickList>
onChange(event: any): void {
console.log(event.args);
}
Get the component with a signal query and call its methods. For example, val: Gets the selected values, or sets them when an array is passed.
<jqxPickList #myPickList></jqxPickList>
import { Component, viewChild } from '@angular/core';
import { jqxPickListModule, jqxPickListComponent } from 'jqwidgets-ng/jqxpicklist';
@Component({
selector: 'app-root',
imports: [jqxPickListModule],
templateUrl: './app.html'
})
export class App {
readonly myPickList = viewChild.required<jqxPickListComponent>('myPickList');
run(): void {
const value = this.myPickList().val();
console.log(value);
}
}