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

com.github.fluorumlabs.disconnect.vaadin.GridColumnGroup 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.GridColumnGroupElement;
import com.github.fluorumlabs.disconnect.vaadin.mixins.HasColumnBaseMixin;
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;
import js.lang.Any;

import javax.annotation.Nullable;

/**
 * A <vaadin-grid-column-group> is used to make groups of columns in <vaadin-grid>
 *  and
 * to configure additional headers and footers.
 * 

* Groups can be nested to create complex header and footer configurations. *

* The class attribute is used to differentiate header and footer templates. * *

Example:

*
<vaadin-grid-column-group resizable>
 *  <template class="header">Name</template>
 *
 *  <vaadin-grid-column>
 *    <template class="header">First</template>
 *    <template>[[item.name.first]]</template>
 *  </vaadin-grid-column>
 *  <vaadin-grid-column>
 *    <template class="header">Last</template>
 *    <template>[[item.name.last]]</template>
 *  </vaadin-grid-column>
 * </vaadin-grid-column-group>
 * 
*/ @WebComponent public class GridColumnGroup extends AbstractComponent> implements HasColumnBaseMixin, GridColumnGroup>, HasStyle, GridColumnGroup>, HasComponents, GridColumnGroup, Component> { public GridColumnGroup() { super(GridColumnGroupElement.TAGNAME()); } /** * Flex grow ratio for the column group as the sum of the ratios of its child columns. */ public double flexGrow() { return getNode().getFlexGrow(); } /** * Width of the column group as the sum of the widths of its child columns. */ @Nullable public String width() { return getNode().getWidth(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy