/*
* Copyright (C)2005-2013 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
// This file is generated, do not edit!
package js.html;
/** DOM TextArea
objects expose the HTMLTextAreaElement (or
HTML 4 HTMLTextAreaElement
) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of <textarea>
elements.
Documentation for this class was provided by MDN. */
@:native("HTMLTextAreaElement")
extern class TextAreaElement extends Element
{
/** Reflects the
autofocus
HTML attribute, indicating that the control should have input focus when the page loads */
var autofocus : Bool;
/** Reflects the
cols
HTML attribute, indicating the visible width of the text area. */
var cols : Int;
/** The control's default value, which behaves like the textContent property. */
var defaultValue : String;
var dirName : String;
/** Reflects the
disabled
HTML attribute, indicating that the control is not available for interaction. */
var disabled : Bool;
/**
The containing form element, if this element is in a form. If this element is not contained in a form element:
id
attribute of any <form>
element in the same document.null
.<label>
elements that are labels for this element. */
var labels(default,null) : NodeList;
/** Reflects the
maxlength
HTML attribute, indicating the maximum number of characters the user can enter. This constraint is evaluated only when the value changes. Setter throws DOMException. */
var maxLength : Int;
/** Reflects
name
HTML attribute, containing the name of the control. */
var name : String;
/** Reflects the
placeholder
HTML attribute, containing a hint to the user about what to enter in the control. */
var placeholder : String;
/** Reflects the
readonly
HTML attribute, indicating that the user cannot modify the value of the control. */
var readOnly : Bool;
/** Reflects the
required
HTML attribute, indicating that the user must specify a value before submitting the form. */
var required : Bool;
/** Reflects the
rows
HTML attribute, indicating the number of visible text lines for the control. */
var rows : Int;
/** The direction in which selection occurred. This is "forward" if selection was performed in the start-to-end direction of the current locale, or "backward" for the opposite direction. This can also be "none" if the direction is unknown." */
var selectionDirection : String;
/** The index of the end of selected text.
HTML5 If no text is selected, contains the index of the character that follows the input cursor. On being set, the control behaves as if setSelectionRange() had been called with this as the second argument, and selectionStart as the first argument. */
var selectionEnd : Int;
/** The index of the beginning of selected text.
HTML5 If no text is selected, contains the index of the character that follows the input cursor. On being set, the control behaves as if setSelectionRange() had been called with this as the first argument, and selectionEnd as the second argument. */
var selectionStart : Int;
/** The codepoint length of the control's value. */
var textLength(default,null) : Int;
/** The string textarea
. */
var type(default,null) : String;
/** A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints. */
var validationMessage(default,null) : String;
/** The validity states that this element is in. */
var validity(default,null) : ValidityState;
/** The raw value contained in the control. */
var value : String;
/** Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation. */
var willValidate(default,null) : Bool;
/** Reflects the
wrap
HTML attribute, indicating how the control wraps text. */
var wrap : String;
function checkValidity() : Bool;
function select() : Void;
function setCustomValidity( error : String ) : Void;
/** Throws DOMException. */
@:overload( function( replacement : String ) :Void {} )
function setRangeText( replacement : String, start : Int, end : Int, selectionMode : String ) : Void;
function setSelectionRange( start : Int, end : Int, ?direction : String ) : Void;
}