com.vaadin.polymer.paper.widget.PaperItemBody Maven / Gradle / Ivy
The 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 http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.paper.widget;
import com.vaadin.polymer.paper.*;
import com.vaadin.polymer.*;
import com.vaadin.polymer.elemental.*;
import com.vaadin.polymer.PolymerWidget;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;
/**
* Use <paper-item-body>
in a <paper-item>
or <paper-icon-item>
to make two- or
three- line items. It is a flex item that is a vertical flexbox.
* <paper-item>
* <paper-item-body two-line>
* <div>Show your status</div>
* <div secondary>Your status is visible to everyone</div>
* </paper-item-body>
* </paper-item>
*
*
*
The child elements with the secondary
attribute is given secondary text styling.
* Styling
* The following custom properties and mixins are available for styling:
*
*
*
* Custom property
* Description
* Default
*
*
*
*
* --paper-item-body-two-line-min-height
* Minimum height of a two-line item
* 72px
*
*
* --paper-item-body-three-line-min-height
* Minimum height of a three-line item
* 88px
*
*
* --paper-item-body-secondary-color
* Foreground color for the secondary
area
* --secondary-text-color
*
*
* --paper-item-body-secondary
* Mixin applied to the secondary
area
* {}
*
*
*
*/
public class PaperItemBody extends PolymerWidget {
/**
* Default Constructor.
*/
public PaperItemBody() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public PaperItemBody(String html) {
super(PaperItemBodyElement.TAG, PaperItemBodyElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public PaperItemBodyElement getPolymerElement() {
return (PaperItemBodyElement) getElement();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy