All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.polymer.iron.IronValidatorBehavior Maven / Gradle / Ivy

The newest version!
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from iron-validator-behavior 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;


/**
 * 

Use Polymer.IronValidatorBehavior to implement a custom input/form validator. Element
instances implementing this behavior will be registered for use in elements that implement
Polymer.IronValidatableBehavior.

*/ @JsType(isNative=true) public interface IronValidatorBehavior { @JsOverlay public static final String NAME = "Polymer.IronValidatorBehavior"; @JsOverlay public static final String SRC = "iron-validator-behavior/iron-validator-behavior.html"; /** *

Name for this validator, used by Polymer.IronValidatableBehavior to lookup this element.

* * JavaScript Info: * @property validatorName * @type String * */ @JsProperty String getValidatorName(); /** *

Name for this validator, used by Polymer.IronValidatableBehavior to lookup this element.

* * JavaScript Info: * @property validatorName * @type String * */ @JsProperty void setValidatorName(String value); /** *

Namespace for this validator.

* * JavaScript Info: * @property validatorType * @type String * */ @JsProperty String getValidatorType(); /** *

Namespace for this validator.

* * JavaScript Info: * @property validatorType * @type String * */ @JsProperty void setValidatorType(String value); /** *

Implement custom validation logic in this function.

* * JavaScript Info: * @method validate * @param {Object} values * * @return {boolean} */ boolean validate(JavaScriptObject values); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy