Skip to content

Commit

Permalink
fix(demo): replace Label with Span
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy authored and paodb committed Oct 2, 2023
1 parent a98aea7 commit c8b917f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.flowingcode.vaadin.addons.demo.DemoSource;
import com.vaadin.flow.component.checkbox.Checkbox;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.html.Label;
import com.vaadin.flow.component.html.Span;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.function.SerializableRunnable;
Expand Down Expand Up @@ -63,7 +62,7 @@ public DragAndDropDemo() {
twinColGrid.setCaption("TwinColGrid demo with drag and drop support");
twinColGrid.setValue(selectedBooks);

final Label countLabel = new Label("Selected items in left grid: 0");
final Span countLabel = new Span("Selected items in left grid: 0");
twinColGrid.getAvailableGrid().addSelectionListener(
e -> countLabel.setText("Selected items in left grid: " + e.getAllSelectedItems().size()));
twinColGrid.addValueChangeListener(e -> countLabel.setText("Selected items in left grid: 0"));
Expand Down

0 comments on commit c8b917f

Please sign in to comment.