Search in sources :

Example 1 with Board

use of com.vaadin.flow.component.board.Board in project docs by vaadin.

the class BoardColumnSpan method createBoard3.

private static Board createBoard3() {
    Row row1 = new Row();
    row1.add(createCell("Span 2"), 2);
    row1.add(createCell("Span 1"));
    Row row2 = new Row();
    row2.add(createCell("Span 1"));
    row2.add(createCell("Span 2"), 2);
    Board board = new Board();
    board.add(row1, row2);
    return board;
}
Also used : Board(com.vaadin.flow.component.board.Board) Row(com.vaadin.flow.component.board.Row)

Example 2 with Board

use of com.vaadin.flow.component.board.Board in project docs by vaadin.

the class BoardColumnSpan method createBoard1.

// tag::createBoard[]
private static Board createBoard1() {
    Row row1 = new Row();
    row1.add(createCell("Span 2"), 2);
    row1.add(createCell("Span 1"));
    row1.add(createCell("Span 1"));
    Row row2 = new Row();
    row2.add(createCell("Span 1"));
    row2.add(createCell("Span 2"), 2);
    row2.add(createCell("Span 1"));
    Row row3 = new Row();
    row3.add(createCell("Span 1"));
    row3.add(createCell("Span 1"));
    row3.add(createCell("Span 2"), 2);
    Board board = new Board();
    board.add(row1, row2, row3);
    return board;
}
Also used : Board(com.vaadin.flow.component.board.Board) Row(com.vaadin.flow.component.board.Row)

Example 3 with Board

use of com.vaadin.flow.component.board.Board in project docs by vaadin.

the class BoardColumnSpan method createBoard2.

private static Board createBoard2() {
    Row row1 = new Row();
    row1.add(createCell("Span 3"), 3);
    row1.add(createCell("Span 1"));
    Row row2 = new Row();
    row2.add(createCell("Span 1"));
    row2.add(createCell("Span 3"), 3);
    Board board = new Board();
    board.add(row1, row2);
    return board;
}
Also used : Board(com.vaadin.flow.component.board.Board) Row(com.vaadin.flow.component.board.Row)

Aggregations

Board (com.vaadin.flow.component.board.Board)3 Row (com.vaadin.flow.component.board.Row)3