Skip to Content

SAPUI5: Realising a Menu with the help of MultiComboBox

Hello,

I have a Menu that should look as the following :

1. Can such a design be realized with MultiComboBox ?

2. If Yes, how to make it with MultiComboBox Design?

multicombobox.png (48.9 kB)
Add a comment
10|10000 characters needed characters exceeded

  • EDIT:

    It is indeed possible but for the model that is given the better option it is to manipulate it through controller.

    In Controller:

    var menu = this.byId("idMultiComboBox");
    var listItem = new sap.ui.core.ListItem("ID");
    var label = new sap.m.Label(); label.setText("Hallo Welt"); l.addCell(label); //Cell isn't supported -> those Error
    menu.addItem(l);

    Issue: Cell isn't supported by MultiComboBox unlike Table. -> How can i add a cell/w/e with a title and all the other Options to the ListItem -> than MultiComboBox.addItem(l) ?

Related questions

1 Answer

  • Best Answer
    Posted on Apr 07 at 01:58 PM

    Yes, this (or at least something very similar) can be done with the grouping feature of the MultiComboBox

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.