Thank you for your reply, to clarify my second point.
Let's say I have the following Listbox
<div class="control-section">
<div id="listbox-selection">
<h4>Select your favorite car:</h4>
<ejs-listbox [dataSource]='data' [selectionSettings]='selection'></ejs-listbox>
</div>
</div>
with the following AppComponent:
export class AppComponent {
// dataSource definition
public data: { [key: string]: Object }[] = [
{ text: 'Hennessey Venom', id: 'list-01' },
{ text: 'Bugatti Chiron', id: 'list-02' },
{ text: 'Bugatti Veyron Super Sport', id: 'list-03' },
{ text: 'SSC Ultimate Aero', id: 'list-04' },
{ text: 'Koenigsegg CCR', id: 'list-05' },
{ text: 'McLaren F1', id: 'list-06' },
{ text: 'Aston Martin One- 77', id: 'list-07' },
{ text: 'Jaguar XJ220', id: 'list-08' },
{ text: 'McLaren P1', id: 'list-09' },
{ text: 'Ferrari LaFerrari', id: 'list-10' }
];
public selection = { showCheckbox: true };
}
And I selected McLaren P1, Aston Martin One-77 and Maclaren F1.
Now, I want to get the selected items (their texts and their ID as well) so the expecting result I want is:
<value="McLaren P1", id="list-09">
<value="Aston Martin One-77 ", id="list-07">
<value="McLaren F1", id="list-06">
I hope it's more clear now
Thanks