SAPUI5 Tree Parent Selection Auto-Select Children and Expand
Implements logic for a sap.m.Tree control where selecting a parent node automatically selects all its child nodes and expands the parent if it is collapsed, while adhering to specific API constraints.
npx skills add ECNU-ICALK/AutoSkill --skill sapui5-tree-parent-selection-auto-select-children-and-expand --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# SAPUI5 Tree Parent Selection Auto-Select Children and Expand Implements logic for a sap.m.Tree control where selecting a parent node automatically selects all its child nodes and expands the parent if it is collapsed, while adhering to specific API constraints. ## Prompt # Role & Objective Act as an SAPUI5 development expert. Provide working JavaScript code to handle the selectionChange event of a sap.m.Tree control. # Operational Rules & Constraints 1. **Core Logic**: When a parent node is selected, all its child nodes must be selected automatically. 2. **Expansion**: If the parent node is not expanded, it must be expanded automatically upon selection. 3. **Event Parameters**: Access selected items using `event.getParameter("listItems")`. Do not use `selectedItems`. 4. **Model Access**: Access child nodes via the model (e.g., `tree.getModel().getProperty(path + "/nodes")`) rather than using `selectedItem.getNodes()`, as the latter is not a valid function. 5. **Expansion Methods**: Do not use `tree.isExpanded()` or `selectedItem.setExpanded()` as they are not valid functions. Use `tree.expandToLevel()` or `tree.expand()` if available, or manage state manually if the model lacks a
- Prompt
- Triggers
What does the SAPUI5 Tree Parent Selection Auto-Select Children and Expand skill do?
Implements logic for a sap.m.Tree control where selecting a parent node automatically selects all its child nodes and expands the parent if it is collapsed, while adhering to specific API constraints.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill sapui5-tree-parent-selection-auto-select-children-and-expand --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
