Attributes |
Name | Required | Request-time | Type | Description |
updateFunction | false | true | java.lang.String | Handle the response from server. |
var | false | true | java.lang.String | Name of the JavaScript object created. |
attachTo | false | true | java.lang.String |
Name of the JavaScript object to which toggle will
attach. You must define 'var' attribute for this to work.
|
baseUrl | true | true | java.lang.String |
URL of server-side action or servlet that processes a
simple command from a toggle action; responds with a
single option value and label.
|
parameters | false | true | java.lang.String |
A comma-separated list of parameters to pass to the
server-side action or servlet.
|
source | true | true | java.lang.String | A unique ID for each toggle tag. |
ratings | true | true | java.lang.String | Comma-delimited list of rating values. |
defaultRating | true | true | java.lang.String |
The default rating to use from the 'ratings' list.
|
state | true | true | java.lang.String |
ID of hidden form field used to hold the current state.
|
onOff | false | true | java.lang.String |
Whether this is a simple on/off (two-value) rating.
Default: false
|
containerClass | true | true | java.lang.String |
CSS style class for the container wrapping the toggle.
|
messageClass | false | true | java.lang.String |
CSS style class for the message displayed as you
mouseover each toggle image.
|
selectedClass | true | true | java.lang.String |
CSS style class for the rating that's selected.
|
selectedLessClass | true | true | java.lang.String |
CSS style class for the rating that is less than the
selected one as you mouseover.
|
selectedOverClass | true | true | java.lang.String |
CSS style class for the rating that is greater than the
selected one as you mouseover.
|
overClass | true | true | java.lang.String |
CSS style class for the rating that is greater than the
selected one.
|
preFunction | false | true | java.lang.String |
Function to execute before AJAX is started.
Should return string "cancel" to cancel AJAX execution.
|
postFunction | false | true | java.lang.String |
Function to execute after AJAX is finished, allowing for
a chain of additional functions to execute.
|
errorFunction | false | true | java.lang.String |
Function to execute if there is a server exception
(non-200 HTTP response).
|
parser | false | true | java.lang.String |
The response parser to implement.
Default: ResponseTextParser
|