accordion works fine, but accordionitem gives me errors

hi,
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

http://webix.com/snippet/03b210db

but accordionitem keep giving me errors.

am I using it in a wrong way?

Please help, thanks

Hi,

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.