ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - HTML Editor - Client side

Obout.Ajax.UI.HTMLEditor.Popups.PopupPaddingSelector class

 Inheritance Hierarchy

It is a client-side representation of the server-side Obout.Ajax.UI.HTMLEditor.Popups.PopupPaddingSelector class.

'Padding selector' button for use inside popups.

Note 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
propertyelement string. Gets the DOM element that the current Control instance is associated with. (Inherited from Sys.UI.Control.)
propertyid 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.)
propertyname string. Gets the name of the button. (Inherited from PopupCommonButton.)
propertyownerPopup object. Gets the owner Popup object (this button is placed in). (Inherited from PopupCallerBGI.)
propertypopupHolder object. Gets the associated Popup Holder object. (Inherited from PopupCallerBGI.)
propertyrelatedPopup object. Gets the associated Popup object (this button opens). (Inherited from PopupCallerBGI.)
Here always an object of PaddingDetails type or null if the popup is not loaded yet.
propertyrelatedPopupClassName string. Gets the class name of the associated Popup (this button opens). (Inherited from PopupCallerBGI.)
Here always "Obout.Ajax.UI.HTMLEditor.Popups.PaddingDetails".
propertytext string. Gets the text inside the 'box' button. (Inherited from PopupBGIButton.)
propertytoolTip string. Gets or sets the tooltip of the button. (Inherited from PopupCommonButton.)
Note 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 paddingSelected, you call the add_paddingSelected or remove_paddingSelected methods:
Type.registerNamespace("CustomPopups");

CustomPopups.MyPopup = function(element) {
   CustomPopups.MyPopup.initializeBase(this, [element]);
   this.paddingSelectedHandler$delegate = Function.createDelegate(this, this.paddingSelectedHandler);
}

CustomPopups.MyPopup.prototype = {
   ...
   paddingSelectedHandler: function (sender, args) {
       alert("Left padding: " + args.get_padding().left);
   },
   preOpen: function(contentWindow) {
      CustomPopups.MyPopup.callBaseMethod (this, "preOpen", [contentWindow]);
      var buttonObject = contentWindow.popupMediator.getHandler("paddingSelector");
      buttonObject.add_paddingSelected(this.paddingSelectedHandler$delegate);
   },
   ok: function(contentWindow) {
      CustomPopups.MyPopup.callBaseMethod (this, "ok", [contentWindow]);
      var buttonObject = contentWindow.popupMediator.getHandler("paddingSelector");
      buttonObject.remove_paddingSelected(this.paddingSelectedHandler$delegate);
   },
   cancel: function(contentWindow) {
      CustomPopups.MyPopup.callBaseMethod (this, "cancel", [contentWindow]);
      var buttonObject = contentWindow.popupMediator.getHandler("paddingSelector");
      buttonObject.remove_paddingSelected(this.paddingSelectedHandler$delegate);
   },
   ...
}
CustomPopups.MyPopup.registerClass("CustomPopups.MyPopup",
                                                    Obout.Ajax.UI.HTMLEditor.Popups.OkCancelPopup);

Events

Name Description
propertypaddingInit Raised before the associated popup with the detailed paddings is opened.
Use this event to set the padding property of the passed argument, it will be used for the associated popup's fields initialization.
Event's argument has type Obout.Ajax.UI.HTMLEditor.Popups.PaddingSelectedArgs.
propertypaddingSelected Raised when the padding was confirmed in the associated popup.
Event's argument has type Obout.Ajax.UI.HTMLEditor.Popups.PaddingSelectedArgs.

"I must admit that your components are the most intuitive I've ever used your product suite is really great, but equally important, the support is even better! :)"

Michael Holm Andersen
M media

Random testimonial   All testimonials