SplitButton.DefaultAction

Syntax

DefaultAction: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The DefaultAction event occurs on clicking the upper part of the button (part that contains an image).

Example

To execute the example, the page must contain the SplitButton component named splitButton (see description of the SplitButton constructor). Add a handler for the DefaultAction event:

splitButton.DefaultAction.add(function ()
{
    splitButton.getContentButton().setEnabled(false);
    splitButton.getImageButton().setIsVisible(false);
});

After executing the example clicking the upper part of the button deactivates the lower button part and hides the upper part.

See also:

SplitButton