com.vaadin.polymer.iron.IronAutogrowTextareaElement Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-autogrow-textarea project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.iron;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
/**
* iron-autogrow-textarea
is an element containing a textarea that grows in height as more
lines of input are entered. Unless an explicit height or the maxRows
property is set, it will
never scroll.
* Example:
* <iron-autogrow-textarea></iron-autogrow-textarea>
*
*
*
Styling
* The following custom properties and mixins are available for styling:
*
*
*
* Custom property
* Description
* Default
*
*
*
*
* --iron-autogrow-textarea
* Mixin applied to the textarea
* {}
*
*
* --iron-autogrow-textarea-placeholder
* Mixin applied to the textarea placeholder
* {}
*
*
*
*/
@JsType(isNative=true)
public interface IronAutogrowTextareaElement extends HTMLElement {
@JsOverlay public static final String TAG = "iron-autogrow-textarea";
@JsOverlay public static final String SRC = "iron-autogrow-textarea/iron-autogrow-textarea.html";
/**
* Set to true to mark the textarea as required.
*
* JavaScript Info:
* @property required
* @type Boolean
*
*/
@JsProperty boolean getRequired();
/**
* Set to true to mark the textarea as required.
*
* JavaScript Info:
* @property required
* @type Boolean
*
*/
@JsProperty void setRequired(boolean value);
/**
* The maximum number of rows this element can grow to until it
scrolls. 0 means no maximum.
*
* JavaScript Info:
* @property maxRows
* @type Number
*
*/
@JsProperty double getMaxRows();
/**
* The maximum number of rows this element can grow to until it
scrolls. 0 means no maximum.
*
* JavaScript Info:
* @property maxRows
* @type Number
*
*/
@JsProperty void setMaxRows(double value);
/**
* The maximum length of the input value.
*
* JavaScript Info:
* @property maxlength
* @type Number
*
*/
@JsProperty double getMaxlength();
/**
* The maximum length of the input value.
*
* JavaScript Info:
* @property maxlength
* @type Number
*
*/
@JsProperty void setMaxlength(double value);
/**
* The minimum length of the input value.
*
* JavaScript Info:
* @property minlength
* @type Number
*
*/
@JsProperty double getMinlength();
/**
* The minimum length of the input value.
*
* JavaScript Info:
* @property minlength
* @type Number
*
*/
@JsProperty void setMinlength(double value);
/**
* Use this property instead of value
for two-way data binding.
This property will be deprecated in the future. Use value
instead.
*
* JavaScript Info:
* @property bindValue
* @type (string|number)
*
*/
@JsProperty Object getBindValue();
/**
* Use this property instead of value
for two-way data binding.
This property will be deprecated in the future. Use value
instead.
*
* JavaScript Info:
* @property bindValue
* @type (string|number)
*
*/
@JsProperty void setBindValue(Object value);
/**
* The initial number of rows.
*
* JavaScript Info:
* @property rows
* @type Number
*
*/
@JsProperty double getRows();
/**
* The initial number of rows.
*
* JavaScript Info:
* @property rows
* @type Number
*
*/
@JsProperty void setRows(double value);
/**
* If true, the user cannot interact with this element.
*
* JavaScript Info:
* @property disabled
* @type Boolean
* @behavior PaperTab
*/
@JsProperty boolean getDisabled();
/**
* If true, the user cannot interact with this element.
*
* JavaScript Info:
* @property disabled
* @type Boolean
* @behavior PaperTab
*/
@JsProperty void setDisabled(boolean value);
/**
* If true, the element currently has focus.
*
* JavaScript Info:
* @property focused
* @type Boolean
* @behavior PaperTab
*/
@JsProperty boolean getFocused();
/**
* If true, the element currently has focus.
*
* JavaScript Info:
* @property focused
* @type Boolean
* @behavior PaperTab
*/
@JsProperty void setFocused(boolean value);
/**
* True if the last call to validate
is invalid.
*
* JavaScript Info:
* @property invalid
* @type Boolean
* @behavior VaadinDatePicker
*/
@JsProperty boolean getInvalid();
/**
* True if the last call to validate
is invalid.
*
* JavaScript Info:
* @property invalid
* @type Boolean
* @behavior VaadinDatePicker
*/
@JsProperty void setInvalid(boolean value);
/**
* Bound to the textarea’s autofocus
attribute.
*
* JavaScript Info:
* @property autofocus
* @type Boolean
*
*/
@JsProperty boolean getAutofocus();
/**
* Bound to the textarea’s autofocus
attribute.
*
* JavaScript Info:
* @property autofocus
* @type Boolean
*
*/
@JsProperty void setAutofocus(boolean value);
/**
* The name of this element.
*
* JavaScript Info:
* @property name
* @type String
* @behavior VaadinDatePicker
*/
@JsProperty String getName();
/**
* The name of this element.
*
* JavaScript Info:
* @property name
* @type String
* @behavior VaadinDatePicker
*/
@JsProperty void setName(String value);
/**
* Bound to the textarea’s autocomplete
attribute.
*
* JavaScript Info:
* @property autocomplete
* @type String
*
*/
@JsProperty String getAutocomplete();
/**
* Bound to the textarea’s autocomplete
attribute.
*
* JavaScript Info:
* @property autocomplete
* @type String
*
*/
@JsProperty void setAutocomplete(String value);
/**
* The value for this element.
*
* JavaScript Info:
* @property value
* @type String
* @behavior VaadinDatePicker
*/
@JsProperty String getValue();
/**
* The value for this element.
*
* JavaScript Info:
* @property value
* @type String
* @behavior VaadinDatePicker
*/
@JsProperty void setValue(String value);
/**
* Bound to the textarea’s inputmode
attribute.
*
* JavaScript Info:
* @property inputmode
* @type String
*
*/
@JsProperty String getInputmode();
/**
* Bound to the textarea’s inputmode
attribute.
*
* JavaScript Info:
* @property inputmode
* @type String
*
*/
@JsProperty void setInputmode(String value);
/**
* Bound to the textarea’s placeholder
attribute.
*
* JavaScript Info:
* @property placeholder
* @type String
*
*/
@JsProperty String getPlaceholder();
/**
* Bound to the textarea’s placeholder
attribute.
*
* JavaScript Info:
* @property placeholder
* @type String
*
*/
@JsProperty void setPlaceholder(String value);
/**
* Namespace for this validator. This property is deprecated and should
not be used. For all intents and purposes, please consider it a
read-only, config-time property.
*
* JavaScript Info:
* @property validatorType
* @type String
* @behavior VaadinDatePicker
*/
@JsProperty String getValidatorType();
/**
* Namespace for this validator. This property is deprecated and should
not be used. For all intents and purposes, please consider it a
read-only, config-time property.
*
* JavaScript Info:
* @property validatorType
* @type String
* @behavior VaadinDatePicker
*/
@JsProperty void setValidatorType(String value);
/**
* Name of the validator to use.
*
* JavaScript Info:
* @property validator
* @type String
* @behavior VaadinDatePicker
*/
@JsProperty String getValidator();
/**
* Name of the validator to use.
*
* JavaScript Info:
* @property validator
* @type String
* @behavior VaadinDatePicker
*/
@JsProperty void setValidator(String value);
/**
* Bound to the textarea’s readonly
attribute.
*
* JavaScript Info:
* @property readonly
* @type String
*
*/
@JsProperty String getReadonly();
/**
* Bound to the textarea’s readonly
attribute.
*
* JavaScript Info:
* @property readonly
* @type String
*
*/
@JsProperty void setReadonly(String value);
/**
*
*
* JavaScript Info:
* @method hasValidator
* @behavior VaadinDatePicker
* @return {boolean}
*/
boolean hasValidator();
/**
* Returns true if value
is valid. The validator provided in validator
will be used first, if it exists; otherwise, the textarea
‘s validity
is used.
*
* JavaScript Info:
* @method validate
*
* @return {boolean}
*/
boolean validate();
/**
* Returns true if the value
is valid, and updates invalid
. If you want
your element to have custom validation logic, do not override this method;
override _getValidity(value)
instead.
*
* JavaScript Info:
* @method validate
* @param {Object} value
* @behavior VaadinDatePicker
* @return {boolean}
*/
boolean validate(JavaScriptObject value);
}