interface ContextMarkupRenderer
Used to output context surrounding any given content. Context is any markup that will be rendered along with any markup for domain property input or output. Input is used in this class to mean any HTML input type element (A way to retrieve users input). Output is used in this class to mean the display of a domain property on the page. An example of what might be returned with inputContext(DomainProperty,Closure)
{ ->
div([class: "form-group"]) {
label('', [for: property.name])
content.delegate = delegate
content.call()
}
}
Type Params | Return Type | Name and description |
---|---|---|
|
abstract groovy.lang.Closure |
embeddedInputContext(DomainProperty property, groovy.lang.Closure content) Defines the context for rendering a the input of an embedded domain class property |
|
abstract groovy.lang.Closure |
embeddedOutputContext(DomainProperty property, groovy.lang.Closure content) Defines the context for rendering a the output of an embedded domain class property |
|
abstract groovy.lang.Closure |
inputContext(PersistentEntity domainClass, groovy.lang.Closure content) Defines the context for rendering a list of domain class properties inputs (form) |
|
abstract groovy.lang.Closure |
inputContext(DomainProperty property, groovy.lang.Closure content) Defines the context for rendering a single domain class property input (select, textarea, etc) |
|
abstract groovy.lang.Closure |
listOutputContext(PersistentEntity domainClass, java.util.List<DomainProperty> properties, groovy.lang.Closure content) Defines the context for rendering a list of domain class instances |
|
abstract groovy.lang.Closure |
outputContext(PersistentEntity domainClass, groovy.lang.Closure content) Defines the context for rendering a list domain class properties (show page) |
|
abstract groovy.lang.Closure |
outputContext(DomainProperty property, groovy.lang.Closure content) Defines the context for rendering a single domain class property output |
Defines the context for rendering a the input of an embedded domain class property
property
- The domain property to be renderedcontent
- The content to be renderedDefines the context for rendering a the output of an embedded domain class property
property
- The domain property to be renderedcontent
- The content to be renderedDefines the context for rendering a list of domain class properties inputs (form)
domainClass
- The domain class to be renderedcontent
- The content to be renderedDefines the context for rendering a single domain class property input (select, textarea, etc)
property
- The domain property to be renderedcontent
- The content to be renderedDefines the context for rendering a list of domain class instances
domainClass
- The domain class to be renderedproperties
- The properties to be renderedcontent
- The content to be rendered for each propertyDefines the context for rendering a list domain class properties (show page)
domainClass
- The domain class to be renderedcontent
- The content to be renderedDefines the context for rendering a single domain class property output
property
- The domain property to be renderedcontent
- The content to be rendered