UiMenuSpecifier (taack-ui 0.5.7-SNAPSHOT API)
Package: taack.ui.dsl

[Groovy] Class UiMenuSpecifier

    • taack.ui.dsl.UiMenuSpecifier


    • @groovy.transform.CompileStatic
      final class UiMenuSpecifier
      extends java.lang.Object

      Allow to specify top menu. Those menus are limited to 2 levels and labels are automatically computed.

        new UiMenuSpecifier().ui {
            menu CrewController.&index as MC
            menu CrewController.&listRoles as MC
            menuIcon ActionIcon.CONFIG_USER, this.&editUser as MC
            menuIcon ActionIcon.EXPORT_CSV, this.&downloadBinPdf as MC
            label "Admin", {
                subMenu this.&confSites as MC
                subMenu this.&menuEntries as MC
                subMenu this.&testDiagram as MC
            }
            menuSearch this.&search as MethodClosure, q
            menuOptions(SupportedLanguage.fromContext())
        }
        

      • 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

        • UiMenuSpecifier()

      • Method Detail

        • UiMenuSpecifier ui(@groovy.lang.DelegatesTo(strategy: Closure.DELEGATE_ONLY, value: MenuSpec) groovy.lang.Closure closure)