ASP.NET 3.5 and above only
Obout.Ajax.UI Controls - HTML Editor - Client side
Note |
To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as toolTip, you call the get_toolTip or set_toolTip methods:
|
var _id = buttonObject.get_id();
...
buttonObject.set_toolTip("It is my button"); |
Properties
| Name |
Description |
element
|
string. Gets the DOM element that the current Control instance is associated with.
(Inherited from Sys.UI.Control.)
|
id
|
string. Gets the identifier for the current Control object. The default is the id value of the associated Sys.UI.DomElement object.
(Inherited from Sys.UI.Control.)
|
name
|
string. Gets the name of the button.
(Inherited from PopupCommonButton.)
|
ownerPopup
|
object.
Gets the owner Popup object (this button is placed in).
(Inherited from PopupCallerImage.)
|
popupHolder
|
object. Gets the associated Popup Holder object.
(Inherited from PopupCallerImage.)
|
relatedPopup
|
object.
Gets the associated Popup object (this button opens).
(Inherited from PopupCallerImage.)
null - if the popup is not loaded yet.
Here always an object of type OkCancelPopup.
|
relatedPopupClassName
|
string.
Gets the class name of the associated Popup (this button opens).
(Inherited from PopupCallerImage.)
Here always "Obout.Ajax.UI.HTMLEditor.Popups.AddFolderPopup".
|
toolTip
|
string. Gets or sets the tooltip of the button.
(Inherited from PopupCommonButton.)
|
Note |
To add or remove handler functions for client API events, you must call methods that are named with the add_ and remove_ prefixes. For example, to add or remove a handler function for an event such as added, you call the add_added or remove_added methods:
|
Type.registerNamespace("CustomPopups");
CustomPopups.MyPopup = function(element) {
CustomPopups.MyPopup.initializeBase(this, [element]);
this.addedHandler$delegate = Function.createDelegate(this, this.addedHandler);
}
CustomPopups.MyPopup.prototype = {
...
addedHandler: function (sender, args) {
alert("The folder name to be added: " + args.get_value());
...
},
preOpen: function(contentWindow) {
CustomPopups.MyPopup.callBaseMethod (this, "preOpen", [contentWindow]);
var buttonObject = contentWindow.popupMediator.getHandler("addFolderButton");
buttonObject.add_added(this.addedHandler$delegate);
},
ok: function(contentWindow) {
CustomPopups.MyPopup.callBaseMethod (this, "ok", [contentWindow]);
var buttonObject = contentWindow.popupMediator.getHandler("addFolderButton");
buttonObject.remove_added(this.addedHandler$delegate);
},
cancel: function(contentWindow) {
CustomPopups.MyPopup.callBaseMethod (this, "cancel", [contentWindow]);
var buttonObject = contentWindow.popupMediator.getHandler("addFolderButton");
buttonObject.remove_added(this.addedHandler$delegate);
},
...
}
CustomPopups.MyPopup.registerClass("CustomPopups.MyPopup",
Obout.Ajax.UI.HTMLEditor.Popups.OkCancelPopup); |
Events
| Name |
Description |
added
|
Raised when the associated 'Add a folder' popup is closed.
Event's argument is an object of type
Obout.Ajax.UI.HTMLEditor.Popups.PromptArgs
if a folder name was prompted (the object's value property contains the name of the folder to be added), otherwise null (the prompt was canceled).
|
obout.com
Obout.Ajax.UI controls
TreeView - 52
HTML Editor - 336
File Upload - 27
Color Picker - 19
Spell Checker - 18
Poll - 26
Captcha - 16
File Manager - 9