-
1 Dec 2011 7:30 AM #1
Export of projects having hidden windows
Export of projects having hidden windows
Designer version tested:
- Designer 1.2.2 rev 48
- Windows 7
- Ext JS 4.0.x
- Projects having hidden window are incorrectly exported. Say you want to create a mockup where click on a button opens a dialog and there are several dialogs of that kind. They become all visible at page load.
- Create a new project
- Add a Viewport
- Add a Panel to the Viewport
- Add several Windows as root elements
- Verify "hidden" property of windows set to true
- Export project
- Open exported page
- All windows shown
- Hidden Windows aren't visible on page load
- designer.js:
cmp1.show(); obviously shouldn't be thereCode: .... var cmp1 = Ext.create('MyApp.view.MyWindow', { renderTo: Ext.getBody() }); cmp1.show(); ....
-
1 Dec 2011 2:26 PM #2
Design and Intent
Design and Intent
By design, XDS creates all the view code for export and creates a base file to view all of the components you mocked-up in XDS...
That base file assumes that you want to view all components. It's up to you to copy that code and paste it into your actual project base. Designer doesn't create the business logic. It simply creates the views and stores. You have to create the controllers and models (as needed). In those controllers, you would write the code that would make a window (dialog box) show or remain hidden.
This is all by design and not a bug.Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...
When in doubt, check the d4mn source code!
-
1 Dec 2011 4:10 PM #3
lorezyra -
Thanks for the post. I'm verifying what was said above is true. Designer 2.0 however will be a game changer and no longer just a tool to build your UI views. It will now be used to build applications entirely without leaving the Designer or the need of an external tool.Aaron Conran
@aconran
Sencha Architect Development Team
-
2 Dec 2011 1:19 AM #4
aconran,
actually Designer is also perfect tool for early/rapid prototyping of user interfaces to be implemented with ExtJs and that's what I'm using it for. So I'm happy to know it is going to be improved in that way
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote