com.vaadin.polymer.iron.element.IronCollapseElement Maven / Gradle / Ivy
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-collapse project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.iron.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;
/**
* iron-collapse
creates a collapsible block of content. By default, the content
will be collapsed. Use opened
or toggle()
to show/hide the content.
* <button on-click="{{toggle}}">toggle collapse</button>
*
* <iron-collapse id="collapse">
* <div>Content goes here...</div>
* </iron-collapse>
*
* ...
*
* toggle: function() {
* this.$.collapse.toggle();
* }
*
*
*
iron-collapse
adjusts the height/width of the collapsible element to show/hide
the content. So avoid putting padding/margin/border on the collapsible directly,
and instead put a div inside and style that.
* <style>
* .collapse-content {
* padding: 15px;
* border: 1px solid #dedede;
* }
* </style>
*
* <iron-collapse>
* <div class="collapse-content">
* <div>Content goes here...</div>
* </div>
* </iron-collapse>
*
*
*
*/
@JsType
public interface IronCollapseElement extends HTMLElement {
public static final String TAG = "iron-collapse";
public static final String SRC = "iron-collapse/iron-collapse.html";
/**
*
*
* JavaScript Info:
* @method enableTransition
* @param {} enabled
*
*/
void enableTransition(JavaScriptObject enabled);
/**
*
*
* JavaScript Info:
* @method hide
*
*/
void hide();
/**
* If true, the orientation is horizontal; otherwise is vertical.
*
* JavaScript Info:
* @property horizontal
* @type Boolean
*
*/
@JsProperty boolean getHorizontal();
/**
* If true, the orientation is horizontal; otherwise is vertical.
*
* JavaScript Info:
* @property horizontal
* @type Boolean
*
*/
@JsProperty void setHorizontal(boolean value);
/**
* Set opened to true to show the collapse element and to false to hide it.
*
* JavaScript Info:
* @property opened
* @type Boolean
*
*/
@JsProperty boolean getOpened();
/**
* Set opened to true to show the collapse element and to false to hide it.
*
* JavaScript Info:
* @property opened
* @type Boolean
*
*/
@JsProperty void setOpened(boolean value);
/**
*
*
* JavaScript Info:
* @method show
*
*/
void show();
/**
* Toggle the opened state.
*
* JavaScript Info:
* @method toggle
*
*/
void toggle();
/**
*
*
* JavaScript Info:
* @method updateSize
* @param {} size
* @param {} animated
*
*/
void updateSize(JavaScriptObject size, JavaScriptObject animated);
/**
*
*
* JavaScript Info:
* @property hostAttributes
* @type Object
*
*/
@JsProperty JavaScriptObject getHostAttributes();
/**
*
*
* JavaScript Info:
* @property hostAttributes
* @type Object
*
*/
@JsProperty void setHostAttributes(JavaScriptObject value);
/**
*
*
* 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