1. #1
    Sencha User
    Join Date
    Aug 2013
    Posts
    16
    Vote Rating
    0
    hlovbeyond is on a distinguished road

      0  

    Default Blank picker when adding data (created in architect) (Sencha touch 2)

    Blank picker when adding data (created in architect) (Sencha touch 2)


    Hi all,
    I have a problem when adding data to a picker if this has been created in Architect and I got the reference using:
    var weekendingPicker = Ext.widget('WeekEndingSelect');
    This works:
    var _weekendingPicker = new Ext.Picker({
    config: {
    hideOnMaskTap: true
    },
    slots: []
    })
    This doesn't:
    Ext.define('TimeZone.view.WeekEndingSelect', {
    extend: 'Ext.picker.Picker',
    alias: 'widget.WeekEndingSelect',
    config: {
    hideOnMaskTap: true,
    slots: [
    ]
    }

    });


    The data that I'm adding is:
    var _data = {
    name: 'weekending',
    title: 'Weekending',
    data: []
    };


    The data is:
    _data.data[0] ={
    text:'one',
    value:'one'
    }

    And I'm adding it using:
    weekendingPicker.add(_data);

    Thanks
    H

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,870
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    What does your picker definition look like?

  3. #3
    Sencha User
    Join Date
    Aug 2013
    Posts
    16
    Vote Rating
    0
    hlovbeyond is on a distinguished road

      0  

    Default


    Ext.define('TimeZone.view.WeekEndingSelect', {
    extend: 'Ext.picker.Picker',
    alias: 'widget.WeekEndingSelect',
    config: {
    hideOnMaskTap: true,
    slots: [
    ]
    }

    });

    I got a reference :
    var weekendingPicker = Ext.widget('WeekEndingSelect');

    Create the data
    var _data = {
    name: 'weekending',
    title: 'Weekending',
    data: []
    };

    data.data[0] ={
    text:'one',
    value:'one'
    }

    Add the data to the picker:
    weekendingPicker.add(_data);

    The picker is displayed blank
    Cheers
    H

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar