For the managed package runtime, this page contains the AccordionSection LWC ReadMe for each Vlocity release.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Vlocity Insurance and Health Winter '20 and Vlocity CME Spring '20
The Accordion Lightning Web Component is the basic element inside the Accordion Lightning Web Component.
Available c-accordion-sectionAttributes
|
Attribute |
Value |
Type |
Required |
Description |
|---|---|---|---|---|
|
label |
string |
Sets the label for the section. |
||
|
name |
string |
Used to bind to the parent accordion component. Name must be unique for each section inside an accordion. |
||
|
title |
string |
Sets the title of the component. |
||
|
menuitem |
array |
yes (if menu size and position is given) |
Defines the list of menu items. |
Example c-accordion-section Component
@track
menuitem = [
{
actionUrl: "javaScript:void(0);",
openUrlIn: "newTab",
name: "menu1",
type: "action",
record: {
id: "001122",
value: "Menu1",
label: "Menu1"
}
},
{
actionUrl: "javaScript:void(0);",
openUrlIn: "newTab",
name: "menu2",
type: "action",
record: {
id: "001123",
value: "Menu2",
label: "Menu2"
}
}]
<c-accordion active-section-name="B">
<c-accordion-section
theme="slds"
label="Accordion With Menu"
name="A"
title="A"
menuitem="{menuitem}"
>
<p>This is the first accordion</p>
<p>.</p>
<p>.</p>
<p>.</p>
</c-accordion-section>
<c-accordion-section
theme="slds"
label="Accordion Without Menu"
name="B"
title="B"
>
<p>This is the second accordion</p>
<p>.</p>
<p>.</p>
<p>.</p>
</c-accordion-section>
<c-accordion-section
theme="slds"
label="Accordion Without Menu"
name="C"
title="C"
>
<p>This is the third accordion</p>
<p>.</p>
<p>.</p>
<p>.</p>
</c-accordion-section>
</c-accordion>