Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member froamer's Avatar
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    101
    Vote Rating
    2
    froamer is on a distinguished road

      0  

    Default Buttons property missing from Window

    Buttons property missing from Window


    Designer version tested: Designer 2.0.0 build 309
    Operating System: Mac OSX Lion
    Framework: Ext JS 4.x

    Description:
    The designer does not include the buttons property: Ext.window.Window > buttons

    You can add the buttons property manually to a Window with...

    Code:
    buttons: [{ text: 'Button 1' }]
    but then the buttons need to be edited within the property value rather than designed (e.g. you can drag in buttons from the Toolbox, you can't edit their text by double clicking, you can't attach event bindings, etc.)

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,902
    Vote Rating
    62
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Yeah we don't support that at the moment you have to add a toolbar docked bottom ... the verbose way
    Code:
    dockedItems: [{
        xtype: 'toolbar',
        dock: 'bottom',
        ui: 'footer',
        defaults: {minWidth: minButtonWidth},
        items: [
            { xtype: 'component', flex: 1 },
            { xtype: 'button', text: 'Button 1' }
        ]
    }]
    It would be nice feature to add this as perhaps a new item in the toolbox called Toolbar Footer or have a quick way to convert toolbars inside a panel to use buttons property
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member froamer's Avatar
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    101
    Vote Rating
    2
    froamer is on a distinguished road

      0  

    Default


    Thanks for the reply Phil.

    The ui: 'footer' goes an long way to working around it.

  4. #4
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,902
    Vote Rating
    62
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Glad we got at least a work around.

    It's not something we won't add it's just stupid low on the list of uber features we're adding to D2
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  5. #5
    Sencha User
    Join Date
    Feb 2013
    Posts
    13
    Vote Rating
    0
    danklasson is on a distinguished road

      0  

    Default


    How do you add that dockedItem list to the window using Sencha Architect 2? The only code that is editable for me are the event bindings and functions.

  6. #6
    Sencha User
    Join Date
    Feb 2013
    Posts
    13
    Vote Rating
    0
    danklasson is on a distinguished road

      0  

    Default


    Problem can be solved by creating another container and docking it to the bottom. Then you can put the button in that container. Only thing it aligns to the left, but that can probably be fixed with some custom css.

  7. #7
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,902
    Vote Rating
    62
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Components can be docked once they sit inside any container.

    Drag out a panel
    place a button in the panel
    search for dock in the config panel
    set it's dock to top

    http://cl.ly/image/183L0W063M1z
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

Thread Participants: 2

Tags for this Thread