Results 1 to 5 of 5

Thread: Whitespace in Picker is ignored

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Location
    Ljubljana
    Posts
    23
    Vote Rating
    0
      0  

    Default 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
    1,149
    Answers
    132
    Vote Rating
    101
      0  

    Default

    Try adding the   instead of spaces

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Location
    Ljubljana
    Posts
    23
    Vote Rating
    0
      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
    1,149
    Answers
    132
    Vote Rating
    101
      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
      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();
    screen.JPG
    Sorry for not saying what i meant as picker.
    I meant this one:

    img.png

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •