1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    59
    Vote Rating
    0
    sendy is on a distinguished road

      0  

    Default Unanswered: Slider Menu showing datepickerfield in menu and not in the mainContainer

    Unanswered: Slider Menu showing datepickerfield in menu and not in the mainContainer


    Hy,
    I am using this plugin https://github.com/wozznik/Slider-Menu .It works fine.
    But I tried to modify the view Option 2 by adding a datepickerfield or (Ext.Message.alert)
    This component is shown on the menu and not int the mainContainer.
    Please any help??
    This is the view:


    Ext.define('UnivMobile.view.AddEvent', {
    extend: 'Ext.Panel',
    requires: ['Ext.field.DatePicker'],

    xtype: 'option2card',



    config: {
    fullscreen: true,
    title: 'Add Event',
    xtype:'formpanel',
    id:'p',
    items: [ {
    xtype: 'fieldset',
    items: [
    {
    xtype: 'textfield',
    name: 'nomEvent',
    id:'nomevent',
    label: 'Nom Event:'
    },
    {

    xtype: 'datepickerfield',
    label: 'Birthday',
    name: 'birthday',
    id:'debEvent',
    value: new Date()
    },
    {
    xtype: 'textfield',
    name: 'dateFinEvent',
    id:'finEvent',
    label: 'Date de fin Event:'
    },
    {
    xtype: 'textfield',
    name: 'lieu',
    id:'loc',
    label: 'Lieu:',

    }
    ] // items
    }
    ]





    }
    });

    Any help please ??

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    First, you are extending Ext.Panel but looks like you want to extend Ext.form.Panel. Setting xtype : 'formpanel' in the config object like that will do absolutely nothing. Also I don't see any usage of the slider menu.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    59
    Vote Rating
    0
    sendy is on a distinguished road

      0  

    Default


    Hy ,
    I have resolved the problem I should add this line to get it in the mainContainer:
    this.parent.parent.parent.parent.push(Element)
    I am using Slider-menu becouse I have a feature that list the Events(Sports,Party......).
    And this one englobes some others features that why I am using a menu.