It would be nice if every div that the ajax toolkit created had an id. Most 'top level' elements do have IDs, but some 'component divs' don't. Because of this, these elements are a little difficult to get at when testing.
For instance, if i were writing tests for my zimbra app and wanted to send a mouse event to the first node of a DwtTree, i would have to do something like the following:
This is 'somewhat' non-intuitive. What is more intuitive is something like this:
Additionally, it might be useful to allow developers to assign their own ids.
new DwtTree(parent, 'UserListTree');
which might change our event dispatching code to something like this:
document.getElementById('UserListTree' + '-expand').dispathEvent(evt);
What do you think?
- Zimbra Collaboration 8.6 Patch 9 now available (includes fix for CVE-2017-8802). Read the announcement.
- Zimbra Collaboration 8.8.7 + Zimbra Connector for Outlook 8.8.7 are available.. Read the announcement.
- Are you a Zimbra Developer? You can find some interesting stuff in our Official GitHub: https://github.com/Zimbra and check the Community Projects too: https://github.com/Zimbra-Community/
Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests