module ListLike::ClassMethods
Public Instance Methods
from_a(parent, array)
click to toggle source
Create a list from an array of pairs (text, data) The data for each item can be retrieved using the item’s get method. Note that if an array element is not a pair, its value will be used both for the text and for the data.
For example: list.current_item.get
# File lib/rui/toolkits/qtbase/qt.rb, line 377 def from_a(parent, array) list = new(parent) list.reset_from_a(array) list end