Generic function
Returns the items for the specified gadget.
gadget-items gadget => items
<collection-gadget>.
<sequence>. Default value: #[].
duim-gadgets
duim-gadgets
Returns the items for gadget. The items of any collection gadget is the collection of items that the collection gadget contains. In a list box, for example, the items are the list items themselves.
The following code creates a list box whose items are the lower-cased equivalents of the symbols stated. Note that the label key for a gadget is a function that computes the label for the items in that gadget.
*gadget* := contain (make(<list-box>, items: #(#"One", #"Two", #"Three"), label-key: method (symbol) as-lowercase (as(<string>, symbol)) end));
You can return the items in the gadget as follows:
gadget-items(*g*);
This returns the symbol: #(#"one", #"two", #"three").
gadget-items-setter, page 567
gadget-label-key, page 570
gadget-selection, page 578
gadget-value-key, page 589