AmpAccordion

Inheritance: java.lang.Object, com.aspose.email.AmpComponent

public class AmpAccordion extends AmpComponent

A UI element that facilitates showing/hiding different sections.

Constructors

Constructor Description
AmpAccordion()

Methods

Method Description
getSections() List of sections.
getDisableSessionStates() Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion.
setDisableSessionStates(boolean value) Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion.
getExpandSingleSection() Set this attribute on the amp-accordion to only allow one section to be expanded at a time.
setExpandSingleSection(boolean value) Set this attribute on the amp-accordion to only allow one section to be expanded at a time.
getRequiredScript() Required script that muct be added to head section.
toAmpHtml() Represents amp html version of component.
toHtml() Represents html version of component.

AmpAccordion()

public AmpAccordion()

getSections()

public final List<Section> getSections()

List of sections.

Returns: java.util.List<com.aspose.email.Section>

getDisableSessionStates()

public final boolean getDisableSessionStates()

Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion.

Returns: boolean

setDisableSessionStates(boolean value)

public final void setDisableSessionStates(boolean value)

Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion.

Parameters:

Parameter Type Description
value boolean

getExpandSingleSection()

public final boolean getExpandSingleSection()

Set this attribute on the amp-accordion to only allow one section to be expanded at a time.

Returns: boolean

setExpandSingleSection(boolean value)

public final void setExpandSingleSection(boolean value)

Set this attribute on the amp-accordion to only allow one section to be expanded at a time.

Parameters:

Parameter Type Description
value boolean

getRequiredScript()

public String getRequiredScript()

Required script that muct be added to head section.

Returns: java.lang.String

toAmpHtml()

public String toAmpHtml()

Represents amp html version of component.

Returns: java.lang.String -

toHtml()

public String toHtml()

Represents html version of component.

Returns: java.lang.String -