Methods

alertTemplate(options) → {string}

Generates the markup for an alert in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
contentstring

The content of the alert.

ctaLabelstring

The label for the call-to-action button.

ctaLinkstring

The link href for the call-to-action button.

customAttributesobject

Any custom attributes.

customClassesArray

An array of additional classes for the toggle.

dismissableAriaLabelstring

The aria-label for the dismiss button.

dismissableTitlestring

The title for the dismiss button.

hasCtaboolean

Whether or not the alert has a call-to-action button.

idstring

Id for the alert, auto generated if not passed.

isDismissableboolean

Whether or not the alert is dismissable.

isInlineboolean

Whether or not the alert is inline.

selectorstring

The data-js selector string for the alert.

spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

themestring

Theme for the toggle, primary or cosmos.

typestring

The type of the alert. Default, notice, success, error and accessibility.

Since
  • 1.1.16
Returns:
Type: 
string
Example
import { alertTemplate } from '@gravityforms/components/html/admin/elements/Alert';

function Example() {
     const alertTemplateHTML = alertTemplateTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', alertTemplateHTML );
}

bindEvents()

Bind event handlers

buttonTemplate(options) → {string}

The template function used to generate our button html.

Parameters:
NameTypeDescription
optionsobject

The options object for the class.

Properties
NameTypeDescription
activeTextstring

If interactive, what is the active text when the button is active?

activeTypestring

What is the active type? Supports loading currently.

attributesstring

Arbitrary attributes for the button.

customClassesArray

Custom classes for the button.

htmlstring

Arbitrary html to append inside the button.

iconstring

Icon name if wishing to use an icon button.

iconPositionstring

Icon position if using one. leading or trailing.

idstring

Id for the button.

interactiveboolean

Is the button interactive? If true the button has two states it transitions, set by activeType.

labelstring

The label for the button. If interactive, the text displayed when inactive.

roundboolean

Does the button have round corners?

sizestring

Size of the button.

spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

typestring

The button type.

Since
  • 1.0.5
Returns:

The button html.

Type: 
string
Example
import { buttonTemplate } from '@gravityforms/components/html/admin/elements/Button';

function Example() {
     const buttonHTML = buttonTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', buttonHTML );
}

cleanUp()

Clears timeouts and does all needed garbage cleanup.

close()

Animates out the snackbar and then removes it from dom.

dialogTemplate(options)

The template function that returns html for the dialog. Options below are passed from constructor and described there.

Parameters:
NameTypeDescription
optionsobject

The options for the dialog.

Properties
NameTypeDescription
alertButtonTextstring

The text for the alert button.

cancelButtonTextstring

The text for the cancel button.

closeButtonClassesstring

The classes for the close button. Space seperated string.

closeButtonAriaLabelstring

The aria label for the close button.

closeButtonSizestring

The size for the close button.

closeButtonTitlestring

The title for the close button.

closeButtonTypestring

The type for the close button.

confirmButtonAttributesstring

The attributes for the confirm button. Space seperated string.

confirmButtonIconstring

The icon for the confirm button.

confirmButtonTextstring

The text for the confirm button.

contentstring

The content for the dialog. HTML allowed.

idstring

The id for the dialog.

maskBlurboolean

Whether to blur the background when the dialog is open.

maskClassesstring

The classes for the mask. Space seperated string.

maskThemeboolean

Background mask theme, none, light or dark.

modestring

The mode for the dialog. alert, confirm or dialog.

positionstring

The position for the dialog. center, top or bottom.

titlestring

The title for the dialog.

titleIconstring

The icon for the title.

titleIconColorstring

The color for the title icon.

wrapperClassesstring

The classes for the wrapper. Space seperated string.

zIndexnumber

The z-index for the dialog.

Since
  • 1.0.6
Returns:

string

Example
import { dialogTemplate } from '@gravityforms/components/html/admin/modules/Dialog';

function Example() {
     const dialogHTML = dialogTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', dialogHTML );
}

Generates the markup for a dropdown in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
attributesstring

The attributes to add to the wrapper element, space seperated.

containerstring

The container to append the dropdown to.

dropdownListAttributesstring

The attributes to add to the dropdown list element.

hasSearchboolean

Whether or not to show the search input.

listDataArray

The list data for the dropdown.

searchAriaTextstring

The aria text for the search input.

searchInputIdstring

The id for the search input.

searchPlaceholderstring

The placeholder for the search input.

selectorstring

The selector for the dropdown.

triggerAriaIdstring

The id for the trigger aria.

triggerAriaTextstring

The aria text for the trigger.

triggerClassesstring

The classes for the trigger.

triggerIdstring

The id for the trigger.

triggerPlaceholderstring

The placeholder for the trigger.

triggerSelectedstring

The selected item for the trigger.

triggerTitlestring

The title for the trigger.

wrapperClassesstring

The classes for the wrapper, space seperated string.

Since
  • 1.1.16
Returns:
Type: 
string
Example
import { dropdownTemplate } from '@gravityforms/components/html/admin/elements/Dropdown';

function Example() {
     const dropdownTemplateHTML = dropdownTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', dropdownTemplateHTML );
}

flyoutTemplate(options) → {string}

The template function that returns html for the flyout. Options below are passed from constructor and described there.

Parameters:
NameTypeDescription
optionsobject

The options for the flyout.

Properties
NameTypeDescription
closeButtonClassesstring

The classes for the close button.

closeButtonTitlestring

The title for the close button.

contentstring

The content for the flyout.

descriptionstring

The description for the flyout. Found under the title in the header.

desktopWidthnumber

The flyout desktop width in percentage.

directionstring

Direction to fly in from, left or right.

expandableboolean

Whether the flyout shows an extra trigger to allow expanding to a larger width.

expandableTitlestring

The title for the expandable trigger.

idstring

The id for the flyout.

maxWidthnumber

The flyout max width in pixels.

mobileBreakpointnumber

The breakpoint for mobile in pixels.

mobileWidthnumber

The flyout mobile width in percentage.

positionstring

The position of the flyout, fixed or absolute positioning

showDividerboolean

Whether to show the divider between the header and content.

simplebarboolean

Whether to use simplebar for the content.

titlestring

The title for the flyout.

wrapperClassesstring

The classes for the wrapper.

zIndexnumber

The z-index for the flyout.

Since
  • 1.0.5
Returns:
Type: 
string
Example
import { flyoutTemplate } from '@gravityforms/components/html/admin/modules/Flyout';

function Example() {
     const flyoutTemplateHTML = flyoutTemplateTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', flyoutTemplateHTML );
}

headingTemplate(options) → {string}

Generates the markup for a Heading Element in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the heading component.

Properties
NameTypeDescription
contentstring

Content for the heading.

customClassesArray

An array of additional classes for the heading.

idstring

Id for the heading, auto generated if not passed.

sizestring

Size string, check storybook for available ones.

spacingstring

Spacing for the component.

tagNamestring

Tag for the heading, h1 if not passed.

weightstring

The font weight for the heading, regular, semibold or bold.

Since
  • 2.2.0
Returns:
Type: 
string
Example
import { headingTemplate } from '@gravityforms/components/html/admin/elements/Heading';

function Example() {
     const headingTemplateHTML = headingTemplateTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', headingTemplateHTML );
}

helpTextTemplate(id, helpText) → {string}

The markup for form field helper text.

Parameters:
NameTypeDescription
idstring

Optional id. Auto generated if not passed.

helpTextstring

Optional helper text.

Since
  • 1.1.18
Returns:
Type: 
string

helpTextTemplate(options) → {string}

The help text template function, can be used when not needing events or a help text instance.

Parameters:
NameTypeDescription
optionsobject

The options for the select component.

Properties
NameTypeDescription
contentstring

Helper text.

customAttributesobject

Any custom attributes.

customClassesArray

Any custom classes.

idstring

Id for the helper text.

sizestring

The font size for the helper text.

spacingstring | number | Array

The spacing for the component, string or array.

weightstring

The font weight for the label.

Since
  • 2.2.0
Returns:

The html for the help text component.

Type: 
string

init() → {void}

Initialize the component.

Since
  • 1.0.0
Returns:
Type: 
void

init() → {void}

Initialize the heading.

Since
  • 2.2.0
Returns:
Type: 
void

init() → {void}

Initialize the help text.

Since
  • 2.2.0
Returns:
Type: 
void

init() → {void}

Initialize the label.

Since
  • 2.2.0
Returns:
Type: 
void

init() → {void}

Initialize the text.

Since
  • 2.2.0
Returns:
Type: 
void

init()

Initialize and execute a snackbar.

inputTemplate(options) → {string}

Generates the markup for a input in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
customAttributesobject

Any custom attributes.

customClassesArray

An array of additional classes for the toggle.

idstring

Id for the input, auto generated if not passed.

inputPrefixstring

The prefix for the input.

inputSuffixstring

The suffix for the input.

labelstring

For radio or checkboxes, the label text.

labelAttributesstring

Any other arbitrary attributes to add to the label.

labelClassesstring

Space separated string of classes to add to the label.

placeholderstring

Input placeholder text.

actionButton
actionButtonIcon
spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

themestring

Theme for the toggle, primary or cosmos.

typestring

Input type: text, email, tel, url, checkbox or radio.

valuestring

The value for the input.

Since
  • 1.1.16
Returns:
Type: 
string
Example
import { inputTemplate } from '@gravityforms/components/html/admin/elements/Input';

function Example() {
     const inputTemplateHTML = inputTemplateTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', inputTemplateHTML );
}

labelTemplate(id, label, labelCustomAttributes, labelCustomClasses, labelVisible) → {string}

The markup for form field label.

Parameters:
NameTypeDescription
idstring

Optional id. Auto generated if not passed.

labelstring

Label for the textarea.

labelCustomAttributesobject

Any custom attributes for the label.

labelCustomClassesArray

Any custom classes for the label.

labelVisibleboolean

If the label should be visible. Defaults to true.

Since
  • 1.1.18
Returns:
Type: 
string

labelTemplate(options) → {string}

Generates the markup for a Label Element in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the label component.

Properties
NameTypeDescription
customAttributesobject

Any custom attributes.

customClassesArray

Any custom classes.

htmlForstring

The for attribute for the label.

labelstring

Label text.

isVisibleboolean

If label is visible (true) or hidden (false).

sizestring

The font size for the label.

spacingstring | number | Array

The spacing for the component, string or array.

weightstring

The font weight for the label.

Since
  • 2.2.0
Returns:

The html for the label component.

Type: 
string
Example
import { labelTemplate } from '@gravityforms/components/html/admin/elements/Label';

function Example() {
     const labelTemplateHTML = labelTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', labelTemplateHTML );
}

linkTemplate(options) → {string}

Generates the markup for a link in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
customAttributesobject

Any custom attributes.

customClassesArray

An array of additional classes for the toggle.

hrefstring

Href for the link.

idstring

Id for the link, auto generated if not passed.

labelstring

Text label for the link.

linkTargetstring

Target for the link, eg _blank.

spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

themestring

Theme for the toggle, primary or cosmos.

Since
  • 1.1.16
Returns:
Type: 
string
Example
import { linkTemplate } from '@gravityforms/components/html/admin/elements/Link';

function Example() {
     const linkTemplateHTML = linkTemplateTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', linkTemplateHTML );
}

loaderTemplate(options) → {string}

Generates the markup for a loader in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
backgroundstring

The background color for the loader.

customAttributesobject

Any custom attributes.

customClassesArray

An array of additional classes for the toggle.

displayTextboolean

Whether to display the loader text.

foregroundstring

The foreground color for the loader.

idstring

Id for the loader, auto generated if not passed.

maskstring

The mask for the loader.

maskThemestring

The mask theme for the loader.

positionstring

The position for the loader.

sizestring

The size for the loader.

spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

textstring

The text for the loader.

textColorstring

The text color for the loader.

themestring

Theme for the toggle, primary or cosmos.

typestring

Type for the loader, spinner or bar.

wrapperCustomAttributesobject

Any custom attributes for the textarea wrapper.

wrapperCustomClassesArray

Any custom classes for the textarea wrapper.

wrapperTagNamestring

Tag to use for the textarea wrapper. Defaults to 'div',

Since
  • 1.1.16
Returns:
Type: 
string
Example
import { loaderTemplate } from '@gravityforms/components/html/admin/elements/Loader';

function Example() {
     const loaderTemplateHTML = loaderTemplateTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', loaderTemplateHTML );
}

render() → {void}

Renders the component into the dom.

Since
  • 1.0.0
Returns:
Type: 
void

render() → {string}

Renders the heading into the dom.

Since
  • 2.2.0
Returns:
Type: 
string

render() → {void}

Renders the box into the dom.

Since
  • 2.2.0
Returns:
Type: 
void

render() → {void}

Renders the label into the dom.

Since
  • 2.2.0
Returns:
Type: 
void

render() → {string}

Renders the text into the dom.

Since
  • 2.2.0
Returns:
Type: 
string

render()

Renders the snackbar in the passed container option.

reveal()

Reveals the snackbar and if autohide true it starts the hide timer. If speak is true, announces the message as well to screenreaders.

selectTemplate(options) → {string}

A select component to use wherever a simple select is needed.

Parameters:
NameTypeDescription
optionsobject

The options for the select component.

Properties
NameTypeDescription
customAttributesobject

Custom attributes for the select.

customClassesArray

An array of additional classes for the select.

disabledboolean

If select is disabled.

helpTextAttributesstring

Custom attribute for the help text.

helpTextPositionstring

The position of the help text. Above or below.

idstring

Optional id. Auto generated if not passed.

initialValuestring

Initial value for the select.

labelAttributesstring

Any custom attributes for the label.

namestring

The name attribute for the select.

optionsArray

An array of options, each option as an object in the following structure: { customOptionAttrs: {}, // Key-value pairs of custom attributes. customOptionClasses: [], // Array of strings of custom classes. label: '', // Label as a string. value: '', // Value as a string. }

sizestring

The select size. Small (size-s), Regular (size-r), or extra large (size-xl).

spacingstring | number | Array

The spacing for the component, string or array.

themestring

The theme of the select.

customAttributes.optionGroup
customAttributes.groups
wrapperAttributesobject

Any custom attributes for the wrapper element.

wrapperClassesArray

Any custom classes for the wrapper element.

wrapperTagNameobject

Tag to use for the textarea wrapper. Defaults to 'div'.

ariaLabelstring

The aria-label text for the select element.

Since
  • 2.2.0
Returns:

The html for the select component.

Type: 
string
Example
import { selectTemplate } from '@gravityforms/components/html/admin/elements/Select';

function Example() {
     const selectTemplateHTML = selectTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', selectTemplateHTML );
}

setOptions()

Merges the default options with the passed args.

snackBarHtml() → {string}

Uses our options to render the snackbar.

Returns:

The html for the snackbar.

Type: 
string

stackedIconTemplate(options) → {string}

Generates the markup for a stackedIcon in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
customAttributesobject

Any custom attributes.

customClassesArray

An array of additional classes for the toggle.

idstring

Id for the stackedIcon, auto generated if not passed.

spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

tagNamestring

Tag to use for the icon wrapper. Defaults to 'span',

themestring

Theme for the toggle, primary or cosmos.

typestring

The icon name string.

Since
  • 1.1.16
Returns:
Type: 
string
Example
import { stackedIconTemplate } from '@gravityforms/components/html/admin/elements/StackedIcon';

function Example() {
     const stackedIconTemplateHTML = stackedIconTemplateTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', stackedIconTemplateHTML );
}

statusIndicatorTemplate(options) → {string}

Generates the markup for a statusIndicator in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
customAttributesobject

Any custom attributes.

customClassesArray

An array of additional classes for the toggle.

hasDotboolean

Whether or not to include the svg dot.

idstring

Id for the statusIndicator, auto generated if not passed.

isStaticboolean

Whether or not the indicator should be active (button) or static (span).

labelstring

Status indicator label.

sizestring

The size of the component.

pillboolean

Whether or not to apply fully rounded "pill" css to the indicator.

spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

statusstring

Type of indicator: active, inactive, or error.

themestring

Theme for the toggle, primary or cosmos.

Since
  • 1.1.16
Returns:
Type: 
string
Example
import { statusIndicatorTemplate } from '@gravityforms/components/html/admin/elements/StatusIndicator';

function Example() {
     const statusIndicatorTemplateHTML = statusIndicatorTemplateTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', statusIndicatorTemplateHTML );
}

textTemplate(options) → {string}

A text component to use wherever texts are needed.

Parameters:
NameTypeDescription
optionsobject

The options for the text component template.

Properties
NameTypeDescription
contentstring

Content for the text.

customClassesArray

An array of additional classes for the text.

idstring

Id for the text, auto generated if not passed.

sizestring

Size string, check storybook for available ones.

spacingstring

Spacing for the component.

tagNamestring

Tag for the text, h2 if not passed.

weightstring

The font weight for the text, regular, semibold or bold.

Since
  • 2.2.0
Returns:

The html for the text component.

Type: 
string
Example
import { textTemplate } from '@gravityforms/components/html/admin/elements/Text';

function Example() {
     const textTemplateHTML = textTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', textTemplateHTML );
}

textareaTemplate(options) → {string}

The markup for a textarea.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
customAttributesobject

Any custom attributes for the textarea.

customClassesArray

Any custom classes for the textarea.

helpTextstring

Optional helper text.

idstring

Optional id. Auto generated if not passed.

labelstring

Label for the textarea.

labelCustomAttributesobject

Any custom attributes for the label.

labelCustomClassesArray

Any custom classes for the label.

labelVisibleboolean

If the label should be visible. Defaults to true.

disabledboolean

If the textarea should be disabled. Defaults to false.

placeholderstring

Optional placeholder text.

spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

themestring

Theme for the toggle, primary or cosmos.

valuestring

Optional initial value for the textarea.

wrapperCustomAttributesobject

Any custom attributes for the textarea wrapper.

wrapperCustomClassesArray

Any custom classes for the textarea wrapper.

wrapperTagNamestring

Tag to use for the textarea wrapper. Defaults to 'div',

Since
  • 1.1.18
Requires:
  • module:labelTemplate
  • module:helpTextTemplate
Returns:
Type: 
string
Example
import { textareaTemplate } from '@gravityforms/components/html/admin/elements/Textarea';

function Example() {
     const textareaHTML = textareaTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', textareaHTML );
}

toggleTemplate(options) → {string}

Generates the markup for a toggle in the admin.

Parameters:
NameTypeDescription
optionsobject

The options for the component template.

Properties
NameTypeDescription
customAttributesobject

Any custom attributes.

customClassesArray

An array of additional classes for the toggle.

disabledboolean

If the toggle is disabled.

iconsboolean

Do we use the checkmark and x icons for this instance.

iconPrefixstring

Prefix for the icon class.

iconBeforestring

Icon to display when toggle is off.

iconAfterstring

Icon to display when toggle is on.

idstring

Id for the toggle, auto generated if not passed.

initialCheckedboolean

Is it checked on render?

labelstring

The label, required for accessibility.

labelPositionstring

Position for the label, defaults to right.

labelVisibleboolean

Is the label visible?

namestring

Name for the input.

sizestring

Size for the toggle. Small (size-s), medium (size-m), or large (size-l).

spacingstring | number | Array | object

The spacing for the component, string, number, object or array.

themestring

Theme for the toggle, primary or cosmos.

ariaDescribedbystring

Class of the element that describes this input.

Since
  • 1.1.16
Returns:
Type: 
string
Example
import { toggleTemplate } from '@gravityforms/components/html/admin/elements/Toggle';

function Example() {
     const toggleHTML = toggleTemplate( options );
     document.body.insertAdjacentHTML( 'beforeend', toggleHTML );
}

Events

gform/alert/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/alert/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/button/activated

Fired when an interactive button is activated on document.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Button class instance.

gform/button/deactivated

Fired when an interactive button is deactivated on document.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Button class instance.

gform/button/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/button/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/dialog/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.0.6

gform/dialog/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/dropdown/item_selected

Fired when the component has an item selected in the dropdown list.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

eventobject

The Component event object for the list item.

Since
  • 1.1.16

gform/dropdown/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/dropdown/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/flyout/close

Fired when the flyout closes.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 3.3.7

gform/flyout/open

Fired when the flyout opens.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 3.3.7

gform/flyout/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.0.5

gform/flyout/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/input/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/input/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/link/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/link/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/loader/post_hide

Fired when the component has completed hiding in the dom.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/loader/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/loader/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/stacked_icon/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/stacked_icon/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/status_indicator/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/status_indicator/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/textarea/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/textarea/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/toggle/post_render

Fired when the component has completed rendering and all class init functions have completed.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16

gform/toggle/pre_init

Fired before the component has started any internal init functions. A great chance to augment the options.

Type:
  • object
Properties
NameTypeDescription
instanceobject

The Component class instance.

Since
  • 1.1.16