Groovy Documentation

grails-app.taglib
Class DialogTagLib

java.lang.Object
  grails-app.taglib.DialogTagLib

class DialogTagLib

Property Summary
def dialog

Possible attrs (aside from YAHOO.widgets.Dialog config): id: Used to create DOM elements and the div that is transformed into the Dialog.

def grailsUITagLibService

static def namespace

def triggerWraps

 
Constructor Summary
DialogTagLib()

 
Method Summary
private def addListeners(def triggers, def dialogId)

 
Methods inherited from class java.lang.Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

dialog

def dialog
Possible attrs (aside from YAHOO.widgets.Dialog config): id: Used to create DOM elements and the div that is transformed into the Dialog. There are some additional elements that use this to find their names as well, but they are internal. title: Text that goes into the header bar of the Dialog triggers: List of Maps that contain data used to attach listeners to the Dialog. Each list element should be a Map with the key=action and the value=configuration. Ex: triggers="[ show:[id:'showTriggerId', on:'click'], hide:[id:'hideTriggerId', on:'click'] ]" This would try to attach event listeners coming from click events on any DOM element with the specified ids. On click, the event would trigger the event specified as the key (show or hide, in this case). Another example where you can ask the tag to create a trigger source for you: EX: triggers="[show:[type:'link', text:'Show Dialog!', on:'click']]" With this trigger configuration, the tag would create a link for you with the specified text that would trigger the Dialog show action upon click. buttons: If you need special event handling, this allows you so specify your buttons and handlers. By default, there are two possible configurations if you do not specify your own button config: 1. 'OK' button that closes the Dialog (when form="true" is not specified [see below]) 2. 'Submit' and 'Cancel', which either submit form data form the Dialog remotely to the server, or close the Dialog without doing anything (when form="true) form: Specifies that you want to process form data from the Dialog. This will configure default 'Submit and 'Cancel' buttons for you, and you cannot change them at this point. Be sure to specify the 'controller', 'action', and 'params' (optional) if you use this. controller: Used to construct the URL to submit the form. action: Used to construct the URL to submit the form. params: (optional) Used to construct the URL to submit the form. update: (optional) Used to render the server response text back to after submit.


grailsUITagLibService

def grailsUITagLibService


namespace

static def namespace


triggerWraps

def triggerWraps


 
Constructor Detail

DialogTagLib

DialogTagLib()


 
Method Detail

addListeners

private def addListeners(def triggers, def dialogId)


 

Groovy Documentation