Export (0) Print
Expand All

msSiteModeUpdateThumbBarButton method

Changes the state of a Thumbnail Toolbar button.

This method is not supported for Windows Store apps using JavaScript.

Internet Explorer 9

 

Syntax

object.msSiteModeUpdateThumbBarButton(iButtonID, bEnabled, bVisible)

Parameters

iButtonID [in]

Type: Integer

Integer that specifies the button ID that is returned from msSiteModeAddThumbBarButton.

bEnabled [in]

Type: Boolean

A Boolean value that specifies true to enable the button; or false to disable it.

bVisible [in]

Type: Boolean

A Boolean value that specifies true to make the button visible; or false to hide it.

Return value

This method does not return a value.

Standards information

There are no standards that apply here.

Remarks

You can use this method to dynamically modify the state of Thumbnail Toolbar buttons. Because all buttons must be added before the Thumbnail Toolbar is displayed, this method gives you control over which buttons are visible or active. Temporarily hide buttons that are not currently needed by setting bVisible to false. You can also configure the buttons to be visible but not active by setting the bEnabled flag to false.

Alternatively, you can replace the button entirely with msSiteModeAddButtonStyle and msSiteModeShowButtonStyle.

See also

external
window
msSiteModeAddThumbBarButton

 

 

Show:
© 2014 Microsoft