1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    27
    Vote Rating
    0
    b_m_l is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha User bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Vote Rating
    44
    Answers
    49
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    It's certainly possible. I just did a test using the following code:

    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 }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    });
    The results are shown in the attached image.

    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.

    Brice
    Attached Images
    Brice 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.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    27
    Vote Rating
    0
    b_m_l is on a distinguished road

      0  

    Default


    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

Thread Participants: 1