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

com.github.fluorumlabs.disconnect.vaadin.BoardRow Maven / Gradle / Ivy

The newest version!
package com.github.fluorumlabs.disconnect.vaadin;

import com.github.fluorumlabs.disconnect.core.annotations.WebComponent;
import com.github.fluorumlabs.disconnect.vaadin.elements.BoardRowElement;
import com.github.fluorumlabs.disconnect.vaadin.mixins.HasElementMixin;
import com.github.fluorumlabs.disconnect.zero.component.AbstractComponent;
import com.github.fluorumlabs.disconnect.zero.component.Component;
import com.github.fluorumlabs.disconnect.zero.component.HasComponents;
import com.github.fluorumlabs.disconnect.zero.component.HasStyle;

/**
 * <vaadin-board-row> is a Polymer element that together with vaadin-board element
 * allows to create flexible responsive layouts and build nice looking dashboard.
 * 

* Each row can contain up to four elements (fewer if colspan is used) and is automatically responsive. The row * changes between large, medium and small modes depending on the available * width and the set breakpoints. In large mode, typically all content is shown side-by-side, in * medium half of the content is side by side and in small mode, content is laid out * vertically. *

* The breakpoints can be set using custom CSS properties. By default the breakpoints are small: < * 600px, medium: < 960px, large >= 960px. * *

<vaadin-board>
 *   <vaadin-board-row>
 *     <div>This could be chart 1</div>
 *     <div>This could be chart 2</div>
 *     <div>This could be chart 3</div>
 *     <div>This could be chart 4</div>
 *   </vaadin-board-row>
 * </vaadin-board>
 * 
*

Styling

* The following custom properties are available for styling: * * * * * * * * * *
Custom propertyDescriptionDefault
--vaadin-board-width-smallDetermines the width where mode changes from * small to medium600px
--vaadin-board-width-mediumDetermines the width where mode changes from * medium to large960px
*/ @WebComponent public class BoardRow extends AbstractComponent implements HasElementMixin, HasStyle, HasComponents> { public BoardRow() { super(BoardRowElement.TAGNAME()); } /** * Redraws the row, if necessary. *

* In most cases, a board row will redraw itself if your reconfigure it. If you dynamically change CSS which * affects the row, then you need to call this method. */ public void redraw() { getNode().redraw(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy