accordion works fine, but accordionitem gives me errors

I’d like to initiate my accordion from html.

I guess the best way to collapse my accordion programmatically is to use accordionitem instead like the following

but accordionitem keep giving me errors.

am I using it in a wrong way?

Please help, thanks


Yes, this is a bug in the current version of Webix UI. There is no way to configure collapsed state of accordion from HTML markup.

As a temporary workaround, you can use a code to collapse the panel programmatically.