Skip to Content
author's profile photo Former Member
Former Member

how to create accordion in view.xml format?

Hi Guys,

how to create accordion in view.xml format?

Regards,

Dhiraj

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2015 at 06:27 AM

    Hi Dhiraj,

    You could use sap.m.Panels?

    OpenUI5 Explored

    If you dont want to use that, we could write sap.ui.commons.Accordian code in xml.

    Regards,
    Naren L Naik

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Dhiraj,

      Here is a simple code snippet.

      <core:View controllerName="mycontoller" xmlns="sap.ui.commons" xmlns:core="sap.ui.core">

      <Accordion>

      <sections>

      <AccordionSection title="accordion section">

      <Button text="button" />

      </AccordionSection>

      </sections>

      </Accordion>

      </core:View>

      Sai's code also should suffice.

      Regards,

      Naren L Naik

  • Posted on Dec 14, 2015 at 07:01 AM

    Hi Dhiraj,

    JS Bin - Collaborative JavaScript Debugging

    Regards,

    Sai Vellanki.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2015 at 10:58 AM

    Hi Naren and Sai,

    This code only works when i use sap.ui.commons library.

    I want to make accordian using sap.m library controls. Because i am making this app for mobile device.

    Is there any control ????

    Regards,

    Dhiraj

    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.