Howto change header for accordionitem

Hello,
In this snippet http://webix.com/snippet/6601c3c4 I would like to change header for accordion item after click on left menu. But I can’t imagine how i can do it.
Please help me.

Yep, it is a bit overcomplicated, check
http://webix.com/snippet/6630e2e2

I have changed the layout to multiview in this sample, as it better suits for “show one from many” use-case

Thank you very much, Maksim.
This is not complicated at all, $$(“mycontent”).config.header= webix.template(id), but just incomprehensible :). I don’t understand what signify in this case webix.template(id).

And I have another question. Why in this example I can’t have both accordionitems expanded after click on some header?

Thanks

Template converts static text to template function. Templates are used in many component, to define how data must be formatted for presentation. It has not much sense for accordion, still it need to be used. :frowning:

I can’t have both accordionitems

By default accordion works in “only one cell may be visible at once” mode. Easily fixed by adding multi:true

http://webix.com/snippet/d3f1f6e9

1 Like

Thanks Maxim for your explanation.
Very appreciated.