Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Form Button (v2)

Button component written in HTL.

Features

  • Provides support for regular and submit buttons

Use Object

The Form Button component uses the com.adobe.cq.wcm.core.components.models.form.Button Sling Model for its Use-object.

Edit Dialog Properties

The following properties are written to JCR for this Form Button component and are expected to be available as Resource properties:

  1. ./jcr:title - defines the text displayed on the button; if none is provided, the text will default to the button type
  2. ./name - defines the name of the button, which will be submitted with the form data
  3. ./value - defines the value of the button, which will be submitted with the form data
  4. ./id - defines the component HTML ID attribute.

Client Libraries

The component provides a core.wcm.components.form.button.v2.editor editor client library category that includes JavaScript handling for dialog interaction. It is already included by its edit and design dialogs.

BEM Description

BLOCK cmp-form-button

Information