Skip to content

Commit

Permalink
Fix: calling the right demo classes
Browse files Browse the repository at this point in the history
With select row on click
  • Loading branch information
ngonzalezpazFC authored and javier-godoy committed Oct 16, 2020
1 parent 9075ee1 commit d4b4c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public DragAndDropDemo() {
.addSortableColumn(Book::getIsbn, Comparator.comparing(Book::getIsbn), "ISBN")
.addSortableColumn(Book::getTitle, Comparator.comparing(Book::getTitle), "Title")
.withLeftColumnCaption("Available books").withRightColumnCaption("Added books")
.withoutAddAllButton().withSizeFull().withDragAndDropSupport();
.withoutAddAllButton().withSizeFull().withDragAndDropSupport().selectRowOnClick();
twinColGrid.setValue(selectedBooks);

final Label countLabel = new Label("Selected items in left grid: 0");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public TwincolDemoView() {
break;
case DRAGNDROP_DEMO:
iframe.getElement().setAttribute("srcdoc", getSrcdoc(DRAGNDROP_DEMO));
layout.addToPrimary(new FilterableDemo());
layout.addToPrimary(new DragAndDropDemo());
layout.addToSecondary(iframe);
add(tabs, layout, footer);
break;
Expand Down

0 comments on commit d4b4c66

Please sign in to comment.