New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

EditorButton Object

The EditorButton object exposes the following public methods and properties to control its behavior:

EditorButton Client-Side Methods

NameParametersReturn TypeDescription
clickBooleanPerforms a click operation, but does not fire a command.
get_contentAreaModeTelerik.Web.UI.EditorContentAreaModeReturns the ContentAreaMode value.
get_enableAriaSupportBooleanIndicates whether the Aria support is enabled.
get_enabledBooleanIndicates whether the tool is enabled.
get_heightStringReturns the height of the tool in pixels.
get_textStringReturns the Text value of the tool.
get_tooltipDecreaseStringReturns the tool-tip text of the decrease button.
get_tooltipIncreaseStringReturns the tool-tip text of the increase button.
get_widthStringReturns the width of the tool in pixels.
getAnchorElementElementReturns the anchor element of the tool.
getSpanElementElementReturns the span element of the tool.
isOnBooleanReturns a Boolean value upon the state of the tool.
isTargetObjectBooleanDetermines whether the tool was clicked.The method takes the following arguments: evtArgs - The event arguments.
set_contentAreaModeTelerik.Web.UI.EditorContentAreaModeOverrides the ConentAreaMode value.The method takes the following arguments: value - The EditorContentAreaMode to be changed to.
set_enableAriaSupportBoolean, StringConfigures the state of the Aria support.The method takes the following arguments: value - Specifies whether to enable or disable the Aria support. role - The role value to be set.
set_enabledBooleanSets the enable/disable state of the tool.The method takes the following arguments: value - Defines whether the tool to be enabled or not.
set_heightStringSets the height value of the tool.The method takes the following arguments: value - The height value.
set_textStringOverrides the Text value of the tool.The method takes the following arguments: value - The new text value.
set_tooltipDecreaseStringSets the tool-tip text of the decrease button.The method takes the following arguments: value - The tooltip text.
set_tooltipIncreaseStringSets the tool-tip text of the increase button.The method takes the following arguments: value - The tooltip text.
set_widthStringSets the width value of the tool.The method takes the following arguments: value - The width value.
setFocusSets the focus on the tool's element.
setOnBoolean, ObjectEnables the tool.The method takes the following arguments: value - If set to false, the tool will remain disabled. attribute - The state to be switched to.
setStateTelerik.Web.UI.Editor.CommandStatesSets the state of the tool.The method takes the following arguments: state - The state to be switched to.

EditorButton Client-Side Methods for attaching/detaching client-side event handlers

NameArgumentsDescription
add_valueSelectedFunctionAdds a handler for the valueSelected EditorButton client event.
remove_valueSelectedFunctionRemoves a handler for the valueSelected EditorButton client event.
Not finding the help you need?
Contact Support