Skip to main content

dxSpeedDialAction

Namespace: Wisej.Web.Ext.DevExtreme

Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)

The SpeedDialAction is a button that performs a custom action. It is displayed as a floating action button or as an item of the speed dial menu opened by the floating action button.

public class dxSpeedDialAction : dxBase

Constructors​

Instance member dxSpeedDialAction()​

Constructs a new instance of the dxSpeedDialAction class.

Example:

The following example creates a floating action button and handles its click.

var action = new dxSpeedDialAction();
action.Options.icon = "add";
action.Options.label = "New order";
action.Instance.onClick += new WidgetEventHandler((s, e) =>
{
AlertBox.Show("Creating a new order...");
});
this.Controls.Add(action);

Instance member dxSpeedDialAction(options)​

Constructs a new instance of the dxSpeedDialAction class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates two actions: the widget groups them in a speed dial menu ordered by the index option.

var edit = new dxSpeedDialAction(new { icon = "edit", label = "Edit", index = 1 });
var remove = new dxSpeedDialAction(new { icon = "trash", label = "Delete", index = 2 });
this.Controls.Add(edit);
this.Controls.Add(remove);

Implements​