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.
- C#
- VB.NET
public class dxSpeedDialAction : dxBase
Public Class dxSpeedDialAction
Inherits dxBase
Constructors
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);
dxSpeedDialAction(options)
Constructs a new instance of the dxSpeedDialAction class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);