Skip to content

Commit a6e2b70

Browse files
committed
feat: add CSS class for Read-Only mode
Close #178
1 parent ccd465d commit a6e2b70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGrid.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ public void setReadOnly(final boolean readOnly) {
684684
removeButton.setEnabled(!readOnly);
685685
addAllButton.setEnabled(!readOnly);
686686
removeAllButton.setEnabled(!readOnly);
687+
setClassName("readonly", readOnly);
687688
}
688689

689690
@Override

0 commit comments

Comments
 (0)