Monaca Onsen UI Discord Chat Github Repo

<ons-list> expandable not working !!



  • hey guys…

    I found out that this code:
    <ons-list-header>Expandable</ons-list-header>
    <ons-list-item expandable>
    Tap to expand
    <div class=“expandable-content”>Expandable content</div>
    </ons-list-item>

    (copied from onsenui website) is not working. Could you guys help me please?


  • administrators

    That code looks correct. Make sure that code is inside an ons-list element.

    What version of Onsen UI are you using? Expandable list items were introduced in 2.10.0.

    You can also test the code in https://onsen.io/playground/ . If it works in the playground then it is a problem with your environment.

    If it is not working in the playground, then click Export to Codepen and link it here.