-
16 Nov 2012 2:19 AM #1
Unanswered: sencha touch 2 selectfield in toolbar?
Unanswered: sencha touch 2 selectfield in toolbar?
is it possible to have a selectfield in a toolbar? i tried but no text is shown, if i have a xtype:'selectfield' in a normal panel it works, if i have it in a toolbar it looks very different, i can click and select options but the values are not shown
-
18 Nov 2012 5:31 PM #2
It's certainly possible. I just did a test using the following code:
The results are shown in the attached image.Code:Ext.define('SelectToolbar.view.Main', { extend: 'Ext.Panel', xtype: 'main', config: { items: [ { items: [ { xtype: 'toolbar', title: 'Select Field in Toolbar', docked: 'top', items: [ { xtype: 'selectfield', label: 'Pick It', options: [ { text: 'First', value: 1 }, { text: 'Second', value: 2 }, { text: 'Third', value: 3 } ] } ] } ] } ] } });
I'm using inline data, are you hooking into a store? If so, share that code with more details and we can help you further.
Also what version of touch are you using? My test was done using 2.1.
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.
-
19 Nov 2012 12:56 AM #3
thx a lot, i solved it now by styling with different css. seemd to "white-out" the text in the select field because i changed lots of scss


Reply With Quote