SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.92k stars 1.23k forks source link

Feature Request: sap.m.StandardTreeItem - indeterminate state - same logic as web component sap.ui.webc.main.TreeItem #4034

Open guychapman opened 2 months ago

guychapman commented 2 months ago

The web components version of TreeItem has a indeterminate property. Will this be extended to the sap.m version? The sap.m.checkbox already has the partiallySelected property....

            /**
             * Defines whether the selection of a tree node is displayed as partially selected. <br>
             * <br>
             * <b>Note:</b> The indeterminate state can be set only programmatically and can’t be achieved by user interaction, meaning that the resulting visual state depends on the values of the <code>indeterminate</code> and <code>selected</code> properties:
             * <ul>
             *     <li> If a tree node has both <code>selected</code> and <code>indeterminate</code> set to <code>true</code>, it is displayed as partially selected.
             *     <li> If a tree node has <code>selected</code> set to <code>true</code> and <code>indeterminate</code> set to <code>false</code>, it is displayed as selected.
             *     <li> If a tree node has <code>selected</code> set to <code>false</code>, it is displayed as not selected regardless of the value of the <code>indeterminate</code> property.
             * </ul> <br>
             * <b>Note:</b> This property takes effect only when the <code>sap.ui.webc.main.Tree</code> is in <code>MultiSelect</code> mode.
             */
            indeterminate: {
                type: "boolean",
                defaultValue: false
            },
PetyaMarkovaBogdanova commented 2 months ago

Hello @guychapman , Thank you for sharing your enhancement proposal. I've created an internal incident DINC0136190. The status of the issue will be updated here in GitHub. Regards, Petya Markova. (UI5 Dispatcher)