public class MTAjaxUpdateLink extends AjaxUpdateLink
Name | Description |
---|---|
action | the action to call when the link executes |
directActionName | the direct action to call when link executes |
updateContainerID | the id of the AjaxUpdateContainer to update after performing this action |
title | title of the link |
style | css style of the link |
class | css class of the link |
id | of the link |
disabled | boolean defining if the link renders the tag |
string | string to get preprended to the contained elements |
function | a custom function to call that takes a single parameter that is the action url |
elementName | the element name to use (defaults to "a") |
functionName | if set, the link becomes a javascript function |
button | if true, this is rendered as a javascript button |
async | boolean defining if the update request is sent asynchronously or synchronously, defaults to true |
accesskey | hot key that should trigger the link (optional) |
onCancel | Fired when a request has been cancelled. |
onClickBefore | if the given function returns true, the onClick is executed. This is to support confirm(..) dialogs. |
onClick | JS function, called after the click on the client |
onComplete | Fired when the Request is completed. |
onException | Fired when setting a request header fails. |
onFailure | Fired when the request failed (error status code). |
onRequest | Fired when the Request is sent. |
onSuccess(responseTree, | responseElements, responseHTML, responseJavaScript) Fired when the Request is completed successfully. |
useSpinner | (boolean) use the Spinner class with this request |
defaultSpinnerClass | inclue the default spinner css class in the headers - if false provide your own. |
spinnerOptions | - (object) the options object for the Spinner class |
spinnerTarget | - (mixed) a string of the id for an Element or an Element reference to use instead of the one specifed in the update option. This is useful if you want to overlay a different area (or, say, the parent of the one being updated). |
ERXDynamicElement.ContextData<T>
log
_children
_ConstructorParameters
Constructor and Description |
---|
MTAjaxUpdateLink(String name,
NSDictionary<String,WOAssociation> associations,
WOElement children) |
Modifier and Type | Method and Description |
---|---|
static void |
addEffect(NSMutableDictionary options,
String effect,
String updateContainerID,
String effectProperty,
String effectStart,
String duration,
String mode) |
void |
addRequiredWebResources(WOResponse response,
WOContext context)
Override this method to append the needed scripts for this component.
|
protected NSMutableDictionary<String,String> |
createAjaxOptions(WOComponent component) |
String |
onClick(WOContext context,
boolean generateFunctionWrapper) |
addEffect, appendToResponse, fullEffectName, handleRequest
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, invokeAction, shouldHandleRequest
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public MTAjaxUpdateLink(String name, NSDictionary<String,WOAssociation> associations, WOElement children)
protected NSMutableDictionary<String,String> createAjaxOptions(WOComponent component)
createAjaxOptions
in class AjaxUpdateLink
public void addRequiredWebResources(WOResponse response, WOContext context)
AjaxDynamicElement
addRequiredWebResources
in class AjaxUpdateLink
response
- the current responsecontext
- context of the transactionpublic String onClick(WOContext context, boolean generateFunctionWrapper)
onClick
in class AjaxUpdateLink
Copyright © 2002 – 2024 Project Wonder.