| Summary: | Commands group with the default command | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Szymon Brandys <Szymon.Brandys> |
| Component: | Client | Assignee: | Malgorzata Janczarska <malgorzata.tomczyk> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ken_walker |
| Version: | unspecified | ||
| Target Milestone: | 5.0 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 426782 | ||
|
Description
Szymon Brandys
I added an extra parameter to addCommandGroup function, defaultActionId, this made the function signature like this: addCommandGroup: function(scopeId, groupId, position, title, parentPath, emptyGroupMessage, imageClass, tooltip, selectionClass, defaultActionId) defaultActionId is a String or boolean. It contains an id of an action from this group that should be invoked when the group is selected. This will add an arrow to the grup that will open the dropdown. Optionally this can be set to *true* instead of adding a particular action. If set to *true* the group will be rendered as if there was a default action, but instead of invoking the default action it will open the dropdown. This option will be ignored if the group is rendered as a subgroup, so top level groups only. |