Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 890 Bytes

form_accordion.rst

File metadata and controls

29 lines (18 loc) · 890 Bytes

Accordion

View path: nos::form/accordion

For each accordion, you can either set:

  • a view + params pair ;
  • or a fields list.

Params:

accordions

A list of accordions

title

Optional. Default value is empty string.

view

Optional. Path to a view.

params

Optional. Data for the view.

fields

Optional. A list of field names.

field_template

Optional. Template to wrap each field. Default value is <p>{field}</p>

header_class

Optional. CSS classes for the <h3> tag.

content_class

Optional. CSS classes for the <div> panel.

show_when_empty

Optional. Default false. Should the panel be displayed if there is no content inside of it?