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

      0  

    Default Unanswered: Can not reuse view?

    Unanswered: Can not reuse view?


    Hello,
    I have a form view and need it to render into two places: tabpanel and modal window. Firstly I got bunch of 'registering same id' problems so I get rid of all hardcoded id names, and after that with no error window shows up empty while it is seen in my tabpanel. By the way this view is going to be used by two controllers.

    My window looks like:

    Code:
    Ext.define('AC.view.service.MuxFormWindow', {
        extend: 'Ext.window.Window',
        alias: 'widget.muxformwindow',
        requires: ['AC.view.mux.Form'], // i thought it would help
    
        title: 'Custom settings',
        height: 400,
        width: 500,
        layout: 'fit',
        modal: true,
        autoShow: true,
        items: [
            {
                xtype: 'muxform', // that my form's alias
                border: false
            }
        ]
    })
    Sorry, I got mistake, it's working. But I have few more questions:
    1) how to hide certain form's fieldset in my window view code?
    2) how to query this form and handle it's events from window but not from tabpanel? I mean how to remove ambiguity when selecting view from different controllers?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Answers
    3356
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    1) at instantiation or at run time?

    2) Use a more specific selector : 'muxformwindow muxform'
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

Thread Participants: 1

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