| Type | Name and description |
|---|---|
AttributeMap |
attributes |
java.lang.String |
context |
java.util.Map |
dataModel |
Databindings |
databindAttrs |
java.util.List |
deferredTemplates |
boolean |
editMode |
org.grails.taglib.NamespacedTagDispatcher |
g |
AttributeMap |
labelAttributes |
org.grails.web.json.JSONObject |
model |
java.lang.Object |
tagAttrs |
java.lang.String |
validationAttr |
java.io.StringWriter |
writer |
| Constructor and description |
|---|
WidgetRenderContext
(java.util.Map viewModel, java.util.Map dataModel, java.lang.String context, Databindings databindAttrs, AttributeMap attributes, AttributeMap labelAttributes, org.grails.taglib.NamespacedTagDispatcher g, java.lang.Object tagAttrs, boolean editMode, java.io.StringWriter writer = null) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addDeferredTemplate(java.lang.Object name) |
|
java.lang.Object |
getDisplayOption(java.lang.String name)Convenience method to formalise the use of the "displayOptions" view model attribute |
|
java.lang.String |
getInputSize(java.lang.Object width) |
|
java.lang.String |
getInputWidth() |
|
java.lang.String |
getSource() |
|
java.util.Map |
getValidationRule(java.lang.String ruleName)Returns a Map of the form [rule: |
|
java.lang.String |
specialProperties(java.lang.Object properties) |
|
java.lang.String |
unitsToRender()If the view model is configured to render units, this method will return the units property of the data model. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Convenience method to formalise the use of the "displayOptions" view model attribute
Returns a Map of the form [rule:
If the view model is configured to render units, this method will return the units property of the data model.
Groovy Documentation