diff --git a/src/showcase/listbox/ListBoxDemo.js b/src/showcase/listbox/ListBoxDemo.js index c808cbb8c6..eece89c61e 100644 --- a/src/showcase/listbox/ListBoxDemo.js +++ b/src/showcase/listbox/ListBoxDemo.js @@ -94,29 +94,51 @@ import {ListBox} from 'primereact/components/listbox/ListBox';
ListBox requires a collection of options with label-value pairs, a value and an onChange event to provide the selected value.
- -Listbox requires a value to bind and a collection of options. There are two alternatives of how to define the options property; One way is providing a collection of SelectItem instances having label-value pairs + whereas other way is providing an array of arbitrary objects along with the optionLabel property to specify the field name of the option. SelectItem API is designed to have more + control on how the options are displayed such as grouping and disabling however in most cases an arbitrary object collection will suffice.
+ +Options as SelectItems
+SelectItem API represents an option using label and value properties. Value can be a string as well as an arbirary object.
+Options as any type
+Listbox allows selection of either single or multiple items whereas checkbox option displays a checkbox to indicate multiple selection.