Class DashboardSaveEventArgs
Argument object passed to SaveDashboard event.
Inheritance
Inherited Members
Namespace: Reveal.Sdk
Assembly: Reveal.UI.Sdk.dll
Syntax
public class DashboardSaveEventArgs : EventArgs
Properties
IsSaveAs
Declaration
public bool IsSaveAs { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
The name of the dashboard being saved.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
SaveFinished()
Notifies the Reveal SDK the save operation has finished and it should switch to view mode.
Declaration
public void SaveFinished()
Serialize()
Serializes the current dashboard to a byte array
Declaration
public Task<byte[]> Serialize()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Byte[]> | a byte array with the contents of the dashboard in rdash format |
SerializeAsJson()
Serializes the current dashboard to JSON string
Declaration
public Task<string> SerializeAsJson()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | a byte array with the contents of the dashboard in rdash format |
SerializeWithNewName(String)
Serializes the current dashboard in '.rdash' format to a byte array, the title of the dashboard is changed to match the specified name.
Declaration
public Task<byte[]> SerializeWithNewName(string newName)
Parameters
Type | Name | Description |
---|---|---|
System.String | newName | The new name of the dashboard, it changes the title attribute of the dashboard object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Byte[]> |
SerializeWithNewNameAsJson(String)
Serializes the current dashboard to JSON string, the title of the dashboard is changed to match the specified name.
Declaration
public Task<string> SerializeWithNewNameAsJson(string newName)
Parameters
Type | Name | Description |
---|---|---|
System.String | newName | The new name of the dashboard, it changes the title attribute of the dashboard object |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> |