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

com.vaadin.polymer.paper.element.PaperSpinnerElement Maven / Gradle / Ivy

There is a newer version: 1.9.3.1
Show newest version
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from paper-spinner project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.paper.element;

import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;

/**
 * 

Element providing material design circular spinner.

*
<paper-spinner active></paper-spinner>
 * 
 * 
 * 

The default spinner cycles between four layers of colors; by default they are
blue, red, yellow and green. It can be customized so that it uses one color only
by setting all the layer colors to the same value.

*

Accessibility

*

Alt attribute should be set to provide adequate context for accessibility. If not provided,
it defaults to ‘loading’.
Empty alt can be provided to mark the element as decorative if alternative content is provided
in another form (e.g. a text block following the spinner).

*
<paper-spinner alt="Loading contacts list" active></paper-spinner>
 * 
 * 
 * 

Styling

*

The following custom properties and mixins are available for styling:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Custom propertyDescriptionDefault
--paper-spinner-layer-1-colorColor of the first spinner rotation--google-blue-500
--paper-spinner-layer-2-colorColor of the second spinner rotation--google-red-500
--paper-spinner-layer-3-colorColor of the third spinner rotation--google-yellow-500
--paper-spinner-layer-4-colorColor of the fourth spinner rotation--google-green-500
*/ @JsType public interface PaperSpinnerElement extends HTMLElement { public static final String TAG = "paper-spinner"; public static final String SRC = "paper-spinner/paper-spinner.html"; /** *

Displays the spinner.

* * JavaScript Info: * @property active * @type Boolean * */ @JsProperty boolean getActive(); /** *

Displays the spinner.

* * JavaScript Info: * @property active * @type Boolean * */ @JsProperty void setActive(boolean value); /** *

Alternative text content for accessibility support.
If alt is present, it will add an aria-label whose content matches alt when active.
If alt is not present, it will default to ‘loading’ as the alt value.

* * JavaScript Info: * @property alt * @type String * */ @JsProperty String getAlt(); /** *

Alternative text content for accessibility support.
If alt is present, it will add an aria-label whose content matches alt when active.
If alt is not present, it will default to ‘loading’ as the alt value.

* * JavaScript Info: * @property alt * @type String * */ @JsProperty void setAlt(String value); /** * * * JavaScript Info: * @method reset * */ void reset(); /** * * * JavaScript Info: * @property listeners * @type Object * */ @JsProperty JavaScriptObject getListeners(); /** * * * JavaScript Info: * @property listeners * @type Object * */ @JsProperty void setListeners(JavaScriptObject value); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy