1. #1
    Sencha User
    Join Date
    Sep 2012
    Location
    Ljubljana
    Posts
    23
    Vote Rating
    0
    TipyTop is on a distinguished road

      0  

    Default Unanswered: Whitespace in Picker is ignored

    Unanswered: Whitespace in Picker is ignored


    Code:
    slots: [ 
            {
                title: 'Title',
                name: 'mySlot',
                data: [
                    {
                        text: "    Doesn't wrk",
                        value: 'value1'
                    },
                    {
                        text: "1.    Doesn't wrk",
                        value: 'value1'
                    },
                ]
            }
        ]
    Picker just ignores if it detects more than one whitespace, however, selectfield does display as it supposed to.

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    Answers
    84
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    Try adding the   instead of spaces

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Location
    Ljubljana
    Posts
    23
    Vote Rating
    0
    TipyTop is on a distinguished road

      0  

    Default


    Quote Originally Posted by jerome76 View Post
    Try adding the   instead of spaces
    Nope. It's still not working.

  4. #4
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    Answers
    84
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    I just tried it and it works for me:
    Code:
    var picker = Ext.create('Ext.Picker', {
        slots: [
            {
                name : 'limit_speed',
                title: 'Speed',
                data : [
                    {text: '5   0 KB/s', value: 50},
                    {text: '100 KB/s', value: 100},
                    {text: '200 KB/s', value: 200},
                    {text: '300 KB/s', value: 300}
                ]
            }
        ]
    });
    Ext.Viewport.add(picker);
    picker.show();
    screen.JPG

  5. #5
    Sencha User
    Join Date
    Sep 2012
    Location
    Ljubljana
    Posts
    23
    Vote Rating
    0
    TipyTop is on a distinguished road

      0  

    Default


    Quote Originally Posted by jerome76 View Post
    I just tried it and it works for me:
    Code:
    var picker = Ext.create('Ext.Picker', {
        slots: [
            {
                name : 'limit_speed',
                title: 'Speed',
                data : [
                    {text: '5   0 KB/s', value: 50},
                    {text: '100 KB/s', value: 100},
                    {text: '200 KB/s', value: 200},
                    {text: '300 KB/s', value: 300}
                ]
            }
        ]
    });
    Ext.Viewport.add(picker);
    picker.show();
    Attachment 39022
    Sorry for not saying what i meant as picker.
    I meant this one:

    img.png

Tags for this Thread