@groovy.transform.CompileStatic final class UiBlockSpecifier extends java.lang.Object
Class assembling graphical elements to display. All graphical elements are displayed in a block. A block is drawn with TaackUiService.show to the browser.
A simple code sample:
// showUser is a regular Grails action
def showUser(User u) {
taackUiSimpleService.show(<b>new UiBlockSpecifier()</b>.ui {
modal {
ajaxBlock 'showUser', {
show u.username, crewUiService.buildUserShow(u), BlockSpec.Width.MAX
}
})
}
}
See BlockSpec for possible associations
Type | Name and description |
---|---|
groovy.lang.Closure |
closure |
Constructor and description |
---|
UiBlockSpecifier
() |
Type Params | Return Type | Name and description |
---|---|---|
|
UiBlockSpecifier |
ui(groovy.lang.Closure closure) Describe the block to display (see BlockSpec) |
|
void |
visitBlock(IUiBlockVisitor blockVisitor) Visit the block description with a IUiBlockVisitor |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), 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() |
Describe the block to display (see BlockSpec)
closure
- the description of the elements to displayVisit the block description with a IUiBlockVisitor
blockVisitor
- the visitorGroovy Documentation