public class XEditableOptions
extends de.agilecoders.wicket.jquery.AbstractConfig
The options for XEditableBehavior
Please note: Not all options are implemented. If more options are needed then the application can extend this class and add them. Or send a Pull Request to the project.
| Constructor and Description |
|---|
XEditableOptions() |
| Modifier and Type | Method and Description |
|---|---|
XEditableOptions |
isDisabled(Boolean value) |
XEditableOptions |
saveNoChanges(Boolean value) |
XEditableOptions |
send(String value)
Strategy for sending data on server.
|
XEditableOptions |
showValue(Boolean value) |
XEditableOptions |
withDefaultValue(String value) |
XEditableOptions |
withEmptyText(String value) |
XEditableOptions |
withHighlight(String value) |
XEditableOptions |
withMode(String value) |
XEditableOptions |
withPlacement(de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipConfig.IPlacement value)
Can be top|right|bottom|left.
|
XEditableOptions |
withType(String value) |
XEditableOptions |
withUrl(String value) |
public XEditableOptions withDefaultValue(String value)
value - that will be displayed in input if original field value is emptypublic XEditableOptions withType(String value)
value - can be text|textarea|select|date|checklist and morepublic XEditableOptions withPlacement(de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipConfig.IPlacement value)
Can be top|right|bottom|left. Not used for inline container.
value - placement of container relative to element.public XEditableOptions withMode(String value)
value - can be popup or inlinepublic XEditableOptions showValue(Boolean value)
value - if false, no displaying methods will be called, element’s text will never change.public XEditableOptions withEmptyText(String value)
value - text shown when element is empty.public XEditableOptions withHighlight(String value)
value - color used to highlight element after update.public XEditableOptions withUrl(String value)
value - url for submitpublic XEditableOptions send(String value)
Strategy for sending data on server.
value - can be auto|always|never.public XEditableOptions isDisabled(Boolean value)
value - whether or not editable is disabledpublic XEditableOptions saveNoChanges(Boolean value)
value - whether to save or cancel value when it was not changed but form was submittedCopyright © 2011–2014 AgileCoders. All rights reserved.