Skip to Content

UI5 Add/remove/change responsive splitter split pane

I am trying to modify the split panes in my view. My view looks like this:

        controllerName="svm.controller.Controller" xmlns:l="sap.ui.layout" 
        <l:ResponsiveSplitter defaultPane="default" width="100%" height="100%">
                <l:SplitPane id="default" height="100%">
                    <Panel headerText="header">
                <l:SplitPane height="100%">
                    <Panel headerText="header2">

The first thing I want to do is change how wide the panes start. It is easy to modify the size of the panel but the pane does not change to be the same width as its panel. Setting the pane to `width="20%"` and `width="80%"` does nothing to move where the splitters start.

I also want one of my panes to not be there when the application starts and to basically be added and removed on a toggle, complete with it's panel and everything inside.

Is there a way to do these things in javascript or preferably in xml?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 19 at 04:17 AM

    Hii try with below code.....give a width for SplitPane it will work

    <l:SplitPane requiredParentWidth="400" id="default">

    <m:Panel headerText="Minimum parent width 400" height="100%">

    <m:List headerText="Products" items="{ path: '/ProductCollection' }">

    <m:StandardListItem title="{Name}" counter="{Quantity}"/> </m:List> </m:Panel>


    Add comment
    10|10000 characters needed characters exceeded

    • It seems those split panes are all the same with, it also seems like the only function of the requiredParentWidth is to display the split pane if there is enough screen width.

      I am looking for a way to change the width programmatically.