Skip to content

Commit

Permalink
Merge pull request #319 from btriller/uimode-erd2wcustomqueryboolean
Browse files Browse the repository at this point in the history
uiMode configuration for ERD2WCustomQueryBoolean, so one can query with ...
  • Loading branch information
darkv committed Jan 17, 2013
2 parents 32f2202 + 7a02779 commit eeef393
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Selector: ERXBooleanSelector {
noString = stringForNo;
noSelectionString = stringForNull;
selection = value;
uiMode = "radio";
uiMode = uiMode;
}

Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,12 @@ public String displayString() {
}
return ERXLocalizer.currentLocalizer().localizedStringForKeyWithDefault(result);
}

public String uiMode() {
String uiMode = "radio";
if(d2wContext().valueForKey("uiMode") != null) {
uiMode = (String) d2wContext().valueForKey("uiMode");
}
return uiMode;
}
}

0 comments on commit eeef393

Please sign in to comment.