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

com.vaadin.polymer.paper.widget.PaperIconItem 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-item project by The Polymer Authors
 * that is licensed with MIT license.
 */
package com.vaadin.polymer.paper.widget;

import com.vaadin.polymer.paper.element.*;

import com.vaadin.polymer.PolymerWidget;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;

/**
 * 

<paper-icon-item> is a convenience element to make an item with icon. It is a non interactive list
item with a fixed-width icon area, according to Material Design. This is useful if the icons are of
varying widths, but you want the item bodies to line up. Use this like a <paper-item>. The child
node with the attribute item-icon is placed in the icon area.

*
<paper-icon-item>
 *   <iron-icon icon="favorite" item-icon></iron-icon>
 *   Favorite
 * </paper-icon-item>
 * <paper-icon-item>
 *   <div class="avatar" item-icon></div>
 *   Avatar
 * </paper-icon-item>
 * 
 * 
 * 

Styling

*

The following custom properties and mixins are available for styling:

* * * * * * * * * * * * * * * * * * * * *
Custom propertyDescriptionDefault
--paper-item-icon-widthWidth of the icon area56px
--paper-icon-itemMixin applied to the item{}
*/ public class PaperIconItem extends PolymerWidget { /** * Default Constructor. */ public PaperIconItem() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public PaperIconItem(String html) { super(PaperIconItemElement.TAG, PaperIconItemElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public PaperIconItemElement getPolymerElement() { return (PaperIconItemElement) getElement(); } /** * * * JavaScript Info: * @property hostAttributes * @type Object * */ public JavaScriptObject getHostAttributes(){ return getPolymerElement().getHostAttributes(); } /** * * * JavaScript Info: * @property hostAttributes * @type Object * */ public void setHostAttributes(JavaScriptObject value) { getPolymerElement().setHostAttributes(value); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy