oboutSuperButton JavaScript object's methods

Methods
propertyenable Enables the button.

myButton.enable();
propertydisable Disables the button.

myButton.disable();
propertysetActive Sets the button as active.

myButton.setActive();
propertyunsetActive Unsets the button as active.

myButton.unsetActive();
propertygetText Returns the string with current Text value of the button.

var txt = myButton.getText();
propertysetText Sets new Text value of the button and returns the old value.

var oldText = myButton.setText(newText);
propertyhideText Hides Text of the button.

myButton.hideText();

See also Hide/show image and text working example.
propertyshowText Set Text of the button to visible after it was hidden with hideText function call.

myButton.showText();

See also Hide/show image and text working example.
propertytextVisible Returns true if Text of the button is visible, otherwise it returns false.

var isTextVisible = myButton.textVisible();

See also Hide/show image and text working example.
propertyhideImage Hides Image of the button.

myButton.hideImage();

See also Hide/show image and text working example.
propertyshowImage Set Image of the button to visible after it was hidden with hideImage function call.

myButton.showImage();

See also Hide/show image and text working example.
propertyimageVisible Returns true if Image of the button is visible, otherwise it returns false.

var isImageVisible = myButton.imageVisible();

See also Hide/show image and text working example.
propertygetGroupName Returns the string with current group name of the button.

var gName = myButton.getGroupName();
propertysetGroupName Sets new group name of the button and returns the old value.

var oldGroupName = myButton.setGroupName(newGroupName);
propertygetStatus Returns the string with current status of the button. Possible values: "enabled", "disabled", "active".

var statusNow = myButton.getStatus();

Static methods of oboutSuperButton object
propertygetByClientID New Returns client-side object by specified client ID of the SuperButton control.

var button1 = oboutSuperButton.getByClientID("<%= but1.ClientID %>");


Sample ASP.NET
...
<Script Language="JavaScript" >
   function butOnClick(sender)
   {
      // Toggle the button's status (enabled/active)
      if(sender.getStatus()=='enabled')
         sender.setActive();
      else
      if(sender.getStatus()=='active')
         sender.unsetActive();
   }
   function toggle_but1()
   {
      var button1 = oboutSuperButton.getByClientID("<%= but1.ClientID %>");
      // Toggle the button's status (enabled/disabled)
      if(button1.getStatus()=='enabled')
         button1.disable();
      else
      if(button1.getStatus()=='disabled')
         button1.enable();
   }
</Script >
...
<osb:SuperButton Id="but1" runat="server" Text="button1" SkinStyle="classic"
   mouseClick="butOnClick(this)"
   onActive="alert('button1 has active status')" />
...
<osb:SuperButton Id="but2" runat="server" Text="toggle button1" SkinStyle="classic"
   mouseClick="toggle_but1()" />