Threaded View

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    104
    Vote Rating
    0
    rbahumi is on a distinguished road

      0  

    Default Answered: Can't create a segmentedbutton

    Answered: Can't create a segmentedbutton


    Hi,

    I am trying to create an 'Ext.SegmentedButton' and cannot manage to do so.
    It feels like the class is not recognized by the Framework.

    1. Trying to instantiate using 'xtype', I am getting this error: 'Uncaught ReferenceError: segmentedbutton is not defined'
    2. Trying to instantiate with 'new Ext.SegmentedButton' from the example from the Sencha Touch documentation, I am getting this error: 'Uncaught TypeError: undefined is not a function'.

    Please advice

  2. Code:
    //new Ext.SegmentedButton({})
    Ext.create('Ext.SegmentedButton',{})

Thread Participants: 2