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;
}
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;
}
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;
}