openui5/selectlist.html at master · sap/openui5 · github - openui5 lets you build enterprise-ready...
TRANSCRIPT
openui5/SelectList.html at master SAP/openui5 GitHub
Skip to content
Ignore
Learn more
Please note that GitHub no longer supports your web browser.
We recommend upgrading to the latest Google Chrome or Firefox.
Features Business Explore Marketplace Pricing
This repository
Sign in or Sign up
Watch 296
Star
1,615
Fork
819
SAP/openui5
Code
Issues 189 Pull requests 20 Insights
Permalink
Branch: master
Switch branches/tags
Branches Tags
gh-pages master rel-1.26 rel-1.28 rel-1.30 rel-1.32 rel-1.34 rel-1.36 rel-1.38 rel-1.40 rel-1.42 rel-1.44 rel-1.46 rel-1.46.4 rel-1.46.5 rel-1.46.6 rel-1.46.7 rel-1.48 rel-1.48.1 rel-1.48.2 rel-1.48.3 rel-1.48.4 rel-1.48.5 rel-1.50 rel-1.50.1 rel-1.50.2 rel-1.50.3 rel-1.50.4 rel-1.50.5 rel-1.52 rel-1.52.1 rel-1.52.2 rel-1.52.3 rel-1.52.4 rel-1.52.5 rel-1.54 rel-1.54.1 rel-1.54.2 rel-1.54.3 rel-1.54.4
Nothing to show
xmake/stage-1.52.3-1 xmake/stage-1.50.6-1 xmake/stage-1.50.1-1 xmake/stage-1.48.10-1 xmake/stage-1.44.19-1 xmake/stage-1.44.3-1 xmake/stage-1.40.18-1 xmake/stage-1.40.3-1 xmake/stage-1.38.33-1 xmake/stage-1.38.14-1 xmake/stage-1.38.12-1 xmake/stage-1.38.4-1 xmake/stage-1.38.3-1 xmake/stage-1.36.12-1 xmake/stage-1.28.46-1 1.54.4 1.54.3 1.54.2 1.54.1 1.54.0 1.52.11 1.52.10 1.52.9 1.52.8 1.52.7 1.52.6 1.52.5 1.52.4 1.52.3 1.52.2 1.52.1 1.52.0 1.50.9 1.50.8 1.50.7 1.50.6 1.50.5 1.50.4 1.50.3 1.50.2 1.50.1 1.50.0 1.48.19 1.48.18 1.48.17 1.48.16 1.48.15 1.48.14 1.48.13 1.48.12 1.48.11 1.48.10 1.48.9 1.48.8 1.48.7 1.48.6 1.48.5 1.48.4 1.48.3 1.48.2 1.48.1 1.48.0 1.46.12 1.46.11 1.46.10 1.46.9 1.46.8 1.46.7 1.46.6 1.46.5 1.46.4 1.46.3 1.46.2 1.46.1 1.46.0 1.44.31 1.44.30 1.44.29 1.44.28 1.44.27 1.44.26 1.44.25 1.44.24 1.44.23 1.44.22 1.44.21 1.44.20 1.44.19 1.44.18 1.44.17 1.44.16 1.44.15 1.44.14 1.44.13 1.44.12 1.44.11 1.44.10 1.44.9 1.44.8 1.44.7
Nothing to show
Find file Copy path
openui5/src/sap.m/test/sap/m/SelectList.html
Fetching contributors
Cannot retrieve contributors at this time
Raw Blame History
494 lines (414 sloc) 7.27 KB
sap.m.SelectListvar oModel = new sap.ui.model.json.JSONModel();var mData = {"items": [{"key": "DZ","text": "Algeria","additionalText": "DZ"},{"key": "AR","text": "Argentina","additionalText": "AR"},{"key": "AU","text": "Australia","additionalText": "AU"},{"key": "AT","text": "Austria","additionalText": "AT"},{"key": "BH","text": "Bahrain","additionalText": "BH"},{"key": "BE","text": "Belgium","additionalText": "BE"},{"key": "BA","text": "Bosnia and Herzegovina","additionalText": "BA"},{"key": "BR","text": "Brazil","additionalText": "BR"},{"key": "BG","text": "Bulgaria","additionalText": "BG"},{"key": "CA","text": "Canada","additionalText": "CA"},{"key": "CL","text": "Chile","additionalText": "CL"},{"key": "CO","text": "Colombia","additionalText": "CO"},{"key": "HR","text": "Croatia","additionalText": "HR"},{"key": "CU","text": "Cuba","additionalText": "CU"},{"key": "CZ","text": "Czech Republic","additionalText": "CZ"},{"key": "DK","text": "Denmark","additionalText": "DK"},{"key": "EG","text": "Egypt","additionalText": "EG"},{"key": "EE","text": "Estonia","additionalText": "EE"},{"key": "FI","text": "Finland","additionalText": "FI"},{"key": "FR","text": "France","additionalText": "FR"},{"key": "GER","text": "Germany","additionalText": "GER"},{"key": "GH","text": "Ghana","additionalText": "GH"},{"key": "GR","text": "Greece","additionalText": "GR"},{"key": "HK","text": "Hong Kong","additionalText": "HK"},{"key": "HU","text": "Hungary","additionalText": "HU"},{"key": "IN","text": "India","additionalText": "IN"},{"key": "ID","text": "Indonesia","additionalText": "ID"},{"key": "IE","text": "Ireland","additionalText": "IE"},{"key": "IL","text": "Israel","additionalText": "IL"},{"key": "IT","text": "Italy","additionalText": "IT"},{"key": "JP","text": "Japan","additionalText": "JP"},{"key": "JO","text": "Jordan","additionalText": "JO"},{"key": "KE","text": "Kenya","additionalText": "KE"},{"key": "KW","text": "Kuwait","additionalText": "KW"},{"key": "LV","text": "Latvia","additionalText": "LV"},{"key": "LT","text": "Lithuania","additionalText": "LT"},{"key": "MK","text": "Macedonia","additionalText": "MK"},{"key": "MY","text": "Malaysia","additionalText": "MY"},{"key": "MX","text": "Mexico","additionalText": "MX"},{"key": "ME","text": "Montenegro","additionalText": "ME"},{"key": "MA","text": "Morocco","additionalText": "MA"},{"key": "NL","text": "Netherlands","additionalText": "NL"},{"key": "NZ","text": "New Zealand","additionalText": "NZ"},{"key": "NG","text": "Nigeria","additionalText": "NG"},{"key": "NO","text": "Norway","additionalText": "NO"},{"key": "OM","text": "Oman","additionalText": "OM"},{"key": "PE","text": "Peru","additionalText": "PE"},{"key": "PH","text": "Philippines","additionalText": "PH"},{"key": "PL","text": "Poland","additionalText": "PL"},{"key": "PT","text": "Portugal","additionalText": "PT"},{"key": "QA","text": "Qatar","additionalText": "QA"},{"key": "RO","text": "Romania","additionalText": "RO"},{"key": "RU","text": "Russia","additionalText": "RU"},{"key": "SA","text": "Saudi Arabia","additionalText": "SA"},{"key": "SN","text": "Senegal","additionalText": "SN"},{"key": "RS","text": "Serbia","additionalText": "RS"},{"key": "SG","text": "Singapore","additionalText": "SG"},{"key": "SK","text": "Slovakia","additionalText": "SK"},{"key": "SI","text": "Slovenia","additionalText": "SI"},{"key": "ZA","text": "South Africa","additionalText": "ZA"},{"key": "KR","text": "South Korea","additionalText": "KR"},{"key": "ES","text": "Spain","additionalText": "ES"},{"key": "SE","text": "Sweden","additionalText": "SE"},{"key": "CH","text": "Switzerland","additionalText": "CH"},{"key": "TW","text": "Taiwan","additionalText": "TW"},{"key": "TN","text": "Tunisia","additionalText": "TN"},{"key": "TR","text": "Turkey","additionalText": "TR"},{"key": "UG","text": "Uganda","additionalText": "UG"},{"key": "UA","text": "Ukraine","additionalText": "UA"},{"key": "AE","text": "United Arab Emirates","additionalText": "AE"},{"key": "GB","text": "United Kingdom","additionalText": "GB"},{"key": "YE","text": "Yemen","additionalText": "YE"}],// path: selectedKey"selected": "GER"};oModel.setData(mData);var oItemTemplate = new sap.ui.core.ListItem({key: "{key}",text: "{text}",additionalText: "{additionalText}"});var oSelectList = new sap.m.SelectList({showSecondaryValues: true,width: "100%",items: {path: "/items",template: oItemTemplate},selectedKey: {path : "/selected",template: "{selected}"},selectionChange: function(oControlEvent) {jQuery.sap.log.info('Event fired: "selectionChange" value property to ' + oControlEvent.getParameter("selectedItem") + " on " + this);}});oSelectList.setModel(oModel);new sap.m.App({pages: [new sap.m.Page({title: "SelectList Control demo page",content: [ oSelectList ]})]}).placeAt("body");
Copy linesCopy permalinkView git blameOpen new issue
Jump to Line Go
2018 GitHub, Inc.TermsPrivacySecurityStatusHelp
Contact GitHubAPITrainingShopBlogAbout
You cant perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.