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

com.vaadin.polymer.paper.widget.PaperItem 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-item> is a non-interactive list item. By default, it is a horizontal flexbox.

*
<paper-item>Item</paper-item>
 * 
 * 
 * 

Use this element with <paper-item-body> to make Material Design styled two-line and three-line
items.

*
<paper-item>
 *   <paper-item-body two-line>
 *     <div>Show your status</div>
 *     <div secondary>Your status is visible to everyone</div>
 *   </paper-item-body>
 *   <iron-icon icon="warning"></iron-icon>
 * </paper-item>
 * 
 * 
 * 

Styling

*

The following custom properties and mixins are available for styling:

* * * * * * * * * * * * * * * * * * * * *
Custom propertyDescriptionDefault
--paper-item-min-heightMinimum height of the item48px
--paper-itemMixin applied to the item{}
*

Accessibility

*

This element has role="listitem" by default. Depending on usage, it may be more appropriate to set
role="menuitem", role="menuitemcheckbox" or role="menuitemradio".

*
<paper-item role="menuitemcheckbox">
 *   <paper-item-body>
 *     Show your status
 *   </paper-item-body>
 *   <paper-checkbox></paper-checkbox>
 * </paper-item>
 * 
 * 
 * 
*/ public class PaperItem extends PolymerWidget { /** * Default Constructor. */ public PaperItem() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public PaperItem(String html) { super(PaperItemElement.TAG, PaperItemElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public PaperItemElement getPolymerElement() { return (PaperItemElement) 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