pnp/List-Formatting

I have a question about FAQ Accordion

Closed this issue · 1 comments

Hi everyone,

I have 2 questions about FAQ Accordion.
https://github.com/pnp/list-formatting/tree/master/view-samples/faq-accordion

  1. By default, all accordions are set to open. Is there a method to have them collapse by default instead?
  2. Is there a means to enable rich text support for the "answer"? Or any other FAQ Accordion support rich text?

Thanks.

Hi @tianxuanliu !

  1. By default, all accordions are set to open. Is there a method to have them collapse by default instead?

In the group settings of the view, selecting "Collapsed" will display it in a collapsed state.

image

  1. Is there a means to enable rich text support for the "answer"? Or any other FAQ Accordion support rich text?

Unfortunately, List Formatting does not support rich text😣

image

Reference: Use column formatting to customize SharePoint - Supported column types