Results 1 to 2 of 2

Thread: ext js 4 window don't want change options at first time

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    12

    Default ext js 4 window don't want change options at first time

    I have window
    Code:
    Ext.define('SD.view.SDDetail', {
        extend: 'Ext.window.Window',
        alias: 'widget.sddetailwindow',
        height: 620,
        width: 850,
        layout: 'fit',
        border: false,
        modal: true,
    
        isDemandReadOnly: true,
        changeStatusOnly: true,
        isNew: true,
     initComponent: function () {}}
    when i open it i want change options isDemandReadOnly isNew changeStatusOnly like this, this code from controller
    Code:
    , onAdd: function (item) {
            var win = this.getSdDetailWindow({
                isDemandReadOnly: false,
                changeStatusOnly: false,
                isNew: false
            });
    
            win.show();
    }
    but at first time isDemandReadOnly isNew changeStatusOnly dont change it values at second it is all ok why at first time my values not change?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    You need to create the properties in a config:{} so you can change the values using automatically created setter/getter for each.

    Please review the following:
    http://www.sencha.com/learn/sencha-class-system

    Scott.

Posting Permissions

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