UI5 / UI5/openui5

TreeTable expand based on model

Open
#3,240 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement in progress
Dominant language
JavaScript
Stars
3.3k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

OpenUI5 version: 1.89.1

Just like setting any other properties of a row via a model, the expand information should be control-able via the model as well.

I know that there are odataV2 annotations for that, but this does not work for

  • JSON Models
  • oData V4 Model
  • Cases where you add a sub item manually in the model and its parent should be expanded instead of asking the user to add and item and then click on expand on the parent to show the added item.

Will probably require a new class of sap.ui.table.row, one that has the expand as an additional property.

Also it is quite odd at the moment to get from a model property or path to the expand method. You have to first find the row this model element belongs to. Then find the rowindex of that row (expensive?!) and then call expand(rowindex).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.