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

org.dominokit.domino.ui.layout.Content Maven / Gradle / Ivy

There is a newer version: 1.0.139
Show newest version
package org.dominokit.domino.ui.layout;

import elemental2.dom.HTMLDivElement;
import elemental2.dom.HTMLElement;
import org.dominokit.domino.ui.utils.BaseDominoElement;

import static org.jboss.elemento.Elements.div;
import static org.jboss.elemento.Elements.section;

public class Content extends BaseDominoElement {

    HTMLDivElement contentContainer;
    HTMLElement section;

    public Content() {
        contentContainer = div().css(LayoutStyles.CONTENT_PANEL).element();
        section = section()
                .css(LayoutStyles.CONTENT)
                .add(contentContainer)
                .element();
        init(this);
    }

    public static Content create(){
        return new Content();
    }

    @Override
    public HTMLElement element() {
        return section;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy