import AccessibilityObject, { AccessibleDisplayObject } from './AccessibilityObject'; import { ROLES } from '../Roles'; export default class ButtonData extends AccessibilityObject { constructor(displayObject: AccessibleDisplayObject, role: ROLES, domIdPrefix: string); /** * @inheritdoc */ addChild(displayObject: AccessibleDisplayObject): void; /** * @inheritdoc */ addChildAt(displayObject: AccessibleDisplayObject, index: number): void; /** * Sets whether the element should get pressed * @access public * @param {boolean} val - true if button pressed */ set pressed(val: boolean); /** * Retrieves whether button pressed * @access public * @returns {boolean} true if button pressed */ get pressed(): boolean; /** * Sets whether the element should get expanded * @access public * @param {boolean} val - true if button expanded, false if button not expanded, * undefined if the field is unset */ set expanded(val: boolean); /** * Retrieves whether button expanded * @access public * @returns {boolean} true if button expanded, false if button not expanded, * undefined if the field is unset */ get expanded(): boolean; /** * Sets whether the element should get focus * @access public * @param {boolean} enable - true if autofocus should be enabled, false otherwise */ set autoFocus(enable: boolean); /** * Retrieves whether autofocus is enabled * @access public * @returns {boolean} true if autofocus is enabled, false otherwise */ get autoFocus(): boolean; /** * Sets whether the element is enabled * @access public * @param {boolean} enable - true if the element should be enabled, * false if the element should be disabled. undefined to unset the field. */ set enabled(enable: boolean); /** * Retrieves whether the element is enabled * @access public * @returns {boolean} true if the element is enabled, false if the element is disabled. * undefined if the field is unset. */ get enabled(): boolean; /** * Set the form_id to on submission * @access public * @param {string} str - form_id submission URL */ set form(str: string); /** * Retrieves the form_id from button * @access public * @returns {string} form submission URL */ get form(): string; /** * Set the URL to send form data to on submission * @access public * @param {string} str - form submission URL */ set formaction(str: string); /** * Retrieves the URL to send form data to on submission * @access public * @returns {string} form submission URL */ get formaction(): string; /** * When method=post, sets how form data should be encoded when sending to the server * @access public * @param {string} str - encoding type */ set formenctype(str: string); /** * Retrieves how form data should be encoded when sending to the server when method=post * @access public * @returns {string} encoding type */ get formenctype(): string; /** * Sets the HTTP method to use for sending form data * @access public * @param {string} str - HTTP method */ set formmethod(str: string); /** * Retrieves the HTTP method for sending form data * @access public * @returns {string} HTTP method */ get formmethod(): string; /** * Sets whether the form should be validated or not when submitted * @access public * @param {boolean} enable - true for validation, false otherwise */ set formnovalidate(enable: boolean); /** * Retrieves whether the form should be validated or not when submitted * @access public * @returns {boolean} true if it should be validated, false otherwise */ get formnovalidate(): boolean; /** * Sets where to display the response from submitting the form * @access public * @param {string} str - where to display the response */ set formtarget(str: string); /** * Retrieves where to display the response from submitting the form * @access public * @returns {string} where to display the response */ get formtarget(): string; /** * Sets the name of the form * @access public * @param {string} str - name of the form */ set name(str: string); /** * Retrieves the name of the form * @access public * @returns {string} name of the form */ get name(): string; /** * Sets the type of button * @access public * @param {string} str - type of button (submit, reset, button) */ set type(str: string); /** * Retrieves the type of button * @access public * @returns {string} type of button (submit, reset, button) */ get type(): string; /** * Set button value * @access public * @param {string} str - button value */ set value(str: string); /** * get button value * @access public * @returns {string} button value */ get value(): string; _onClick(evt: Event): void; }