Aspose::Email::Amp::AmpAccordion Class Reference

A UI element that facilitates showing/hiding different sections. More...

Inherits Aspose::Email::Amp::AmpComponent.

Public Member Functions

System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< Section > > > get_Sections () const
 List of sections. More...
 
bool get_DisableSessionStates () const
 Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion. More...
 
void set_DisableSessionStates (bool value)
 Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion. More...
 
bool get_ExpandSingleSection () const
 Set this attribute on the amp-accordion to only allow one section to be expanded at a time. More...
 
void set_ExpandSingleSection (bool value)
 Set this attribute on the amp-accordion to only allow one section to be expanded at a time. More...
 
System::String get_RequiredScript () override
 Required script that muct be added to head section. More...
 
System::String ToAmpHtml () override
 Represents amp html version of component. More...
 
System::String ToHtml () override
 Represents html version of component. More...
 
 AmpAccordion ()
 
- Public Member Functions inherited from Aspose::Email::Amp::AmpComponent
System::SharedPtr< AmpAttributesget_Attributes () const
 AMP provides a set of common attributes that are extended to many AMP components. More...
 
System::String get_Fallback () const
 A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. More...
 
void set_Fallback (System::String value)
 A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. More...
 
System::SharedPtr< AmpComponentget_Placeholder () const
 The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element. More...
 
void set_Placeholder (System::SharedPtr< AmpComponent > value)
 The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element. More...
 
 AmpComponent ()
 

Detailed Description

A UI element that facilitates showing/hiding different sections.

Constructor & Destructor Documentation

◆ AmpAccordion()

Aspose::Email::Amp::AmpAccordion::AmpAccordion ( )

Member Function Documentation

◆ get_DisableSessionStates()

bool Aspose::Email::Amp::AmpAccordion::get_DisableSessionStates ( ) const

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

◆ get_ExpandSingleSection()

bool Aspose::Email::Amp::AmpAccordion::get_ExpandSingleSection ( ) const

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

◆ get_RequiredScript()

System::String Aspose::Email::Amp::AmpAccordion::get_RequiredScript ( )
overridevirtual

Required script that muct be added to head section.

Implements Aspose::Email::Amp::AmpComponent.

◆ get_Sections()

System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<Section> > > Aspose::Email::Amp::AmpAccordion::get_Sections ( ) const

List of sections.

◆ set_DisableSessionStates()

void Aspose::Email::Amp::AmpAccordion::set_DisableSessionStates ( bool  value)

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

◆ set_ExpandSingleSection()

void Aspose::Email::Amp::AmpAccordion::set_ExpandSingleSection ( bool  value)

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

◆ ToAmpHtml()

System::String Aspose::Email::Amp::AmpAccordion::ToAmpHtml ( )
overridevirtual

Represents amp html version of component.

Returns

Implements Aspose::Email::Amp::AmpComponent.

◆ ToHtml()

System::String Aspose::Email::Amp::AmpAccordion::ToHtml ( )
overridevirtual

Represents html version of component.

Returns

Implements Aspose::Email::Amp::AmpComponent.