ComponentOne Window for ASP.NET AJAX: Working with Client-Side Script in Window for ASP.NET AJAX > Dialog Window Client-Side Properties > Caption Button Client-Side Methods

Caption Button Client-Side Methods

The following table lists the object methods available from client-side script for the dialog window caption buttons, including the Pin, Reload, CollapseExpand, Minimize, Maximize, Close, and Restore buttons:

 

Property

Client-Side Method

Description

Example

Visible

get_visible()

Gets or sets value indicating whether the element is visible.

dialog.get_captionButtons().get_closeButton().get_visible()

set_visible(value)

dialog.get_captionButtons().get_closeButton().set_visible(false)

Tooltip

get_tooltip()

Gets or sets the text displayed when the mouse pointer hovers over the button.

dialog.get_captionButtons().get_closeButton().get_toolTip()

set_tooltip(value)

dialog.get_captionButtons().get_closeButton().set_toolTip("Close window")


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.