UiBlockSpecifier (taack-ui 0.4.0-SNAPSHOT API)
Package: taack.ui.base

[Groovy] Class UiBlockSpecifier

    • taack.ui.base.UiBlockSpecifier


    • @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

      • Properties Summary

          Properties 
          Type Name and description
          groovy.lang.Closure  closure
      • Constructor Summary

      • Methods Summary

      • Inherited Methods Summary

          Inherited Methods 
          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()
      • Property Detail

        • groovy.lang.Closure closure

      • Constructor Detail

        • UiBlockSpecifier()

      • Method Detail

        • UiBlockSpecifier ui(@groovy.lang.DelegatesTo(strategy: Closure.DELEGATE_FIRST, value: BlockSpec) groovy.lang.Closure closure)

          Describe the block to display (see BlockSpec)

          Parameters:
          closure - the description of the elements to display
          Returns:
          itself