Usage Of lightning:dualListbox

In this blog, I am going to explain how to use salesforce lightning: dualListbox. A widget that provides an input list box, accompanied by a list box of selectable options. Order of selected options is saved. A lightning:dualListbox component represents two side-by-side list boxes. Select one or more options in the list on the left. Move selected options to the list on the right. The order of the selected options is maintained and you can reorder options. In this example, I am getting data from the Book_Categories__c objects and showing its as a  dualListbox available options.

Apex Class



Below image shows the result of the component .