Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    62
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    62
    Vote Rating
    0
      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.

Posting Permissions

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