Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

The missing link in BB10/Cascades

DropDown {
    title: qsTr("Countries")
    Option {
        text: qsTr("Afghanistan")
        value: "AFG"
    }
    Option {
        text: qsTr("Albania")
        value: "ALB"
    }
    ...
}
import bb.cascades.ext 1.0

...

DropDown {
    id: countryDropDown

    attachedObjects: [
        DropDownModelAdaptor {
            dropDown: countryDropDown
            dataModel: _countryModel

            Option {
                text: OptionData.countryName
                value: OptionData.isoCode
            }
        }
    ]
}

3 Comments

30 - Jan - 2013

Mario

30 - Jan - 2013

Tobias Koenig

30 - Jan - 2013

Dalius