Aspose::Email::Amp::AmpForm Class Reference

The amp-form extension allows you to create forms to submit input fields in an AMP document. More...

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

Public Member Functions

System::SharedPtr< System::Collections::Generic::ListExt< System::SharedPtr< FormField > > > get_Fieldset () const
 List of fields. More...
 
FormMethod get_Method () const
 The method attribute tells the server about the request method. More...
 
void set_Method (FormMethod value)
 The method attribute tells the server about the request method. More...
 
FormTarget get_Target () const
 Indicates where to display the form response after submitting the form.The value must be _blank or _top. More...
 
void set_Target (FormTarget value)
 Indicates where to display the form response after submitting the form.The value must be _blank or _top. More...
 
System::String get_Action () const
 Specifies a server endpoint to handle the form input. The value must be an https URL (absolute or relative) and must not be a link to a CDN More...
 
void set_Action (System::String value)
 Specifies a server endpoint to handle the form input. The value must be an https URL (absolute or relative) and must not be a link to a CDN More...
 
System::String get_ActionXhr () const
 Specifies a server endpoint to handle the form input and submit the form via XMLHttpRequest (XHR). More...
 
void set_ActionXhr (System::String value)
 Specifies a server endpoint to handle the form input and submit the form via XMLHttpRequest (XHR). 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...
 
 AmpForm ()
 
- 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

The amp-form extension allows you to create forms to submit input fields in an AMP document.

Constructor & Destructor Documentation

◆ AmpForm()

Aspose::Email::Amp::AmpForm::AmpForm ( )

Member Function Documentation

◆ get_Action()

System::String Aspose::Email::Amp::AmpForm::get_Action ( ) const

Specifies a server endpoint to handle the form input. The value must be an https URL (absolute or relative) and must not be a link to a CDN

◆ get_ActionXhr()

System::String Aspose::Email::Amp::AmpForm::get_ActionXhr ( ) const

Specifies a server endpoint to handle the form input and submit the form via XMLHttpRequest (XHR).

◆ get_Fieldset()

System::SharedPtr<System::Collections::Generic::ListExt<System::SharedPtr<FormField> > > Aspose::Email::Amp::AmpForm::get_Fieldset ( ) const

List of fields.

◆ get_Method()

FormMethod Aspose::Email::Amp::AmpForm::get_Method ( ) const

The method attribute tells the server about the request method.

◆ get_RequiredScript()

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

Required script that muct be added to head section.

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

◆ get_Target()

FormTarget Aspose::Email::Amp::AmpForm::get_Target ( ) const

Indicates where to display the form response after submitting the form.The value must be _blank or _top.

◆ set_Action()

void Aspose::Email::Amp::AmpForm::set_Action ( System::String  value)

Specifies a server endpoint to handle the form input. The value must be an https URL (absolute or relative) and must not be a link to a CDN

◆ set_ActionXhr()

void Aspose::Email::Amp::AmpForm::set_ActionXhr ( System::String  value)

Specifies a server endpoint to handle the form input and submit the form via XMLHttpRequest (XHR).

◆ set_Method()

void Aspose::Email::Amp::AmpForm::set_Method ( FormMethod  value)

The method attribute tells the server about the request method.

◆ set_Target()

void Aspose::Email::Amp::AmpForm::set_Target ( FormTarget  value)

Indicates where to display the form response after submitting the form.The value must be _blank or _top.

◆ ToAmpHtml()

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

Represents amp html version of component.

Returns

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

◆ ToHtml()

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

Represents html version of component.

Returns

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