Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ReloadPage.cs
1using Waher.Script;
5
7{
12 {
21 {
22 }
23
32 : base(new ScriptNode[] { Page }, argumentTypes1Normal, Start, Length, Expression)
33 {
34 }
35
44 public ReloadPage(ScriptNode Page, ScriptNode QueryFilter, int Start, int Length, Expression Expression)
45 : base(new ScriptNode[] { Page, QueryFilter }, argumentTypes2Scalar, Start, Length, Expression)
46 {
47 }
48
52 public override string FunctionName => nameof(ReloadPage);
53
57 public override string[] DefaultArgumentNames => new string[] { "Page", "QueryFilter" };
58
66 {
67 string[] TabIDs = GetTabIDs.GetTabs(Arguments, this);
68
69 if (TabIDs.Length > 0)
70 ClientEvents.PushEvent(TabIDs, "Reload", string.Empty);
71
72 return new ObjectVector(TabIDs);
73 }
74 }
75}
The ClientEvents class allows applications to push information asynchronously to web clients connecte...
Definition: ClientEvents.cs:51
static Task< int > PushEvent(string[] TabIDs, string Type, object Data)
Puses an event to a set of Tabs, given their Tab IDs.
Gets an array of Tab IDs (as strings) of currently open pages, given certain conditions.
Definition: GetTabIDs.cs:16
static string[] GetTabs(IElement[] Arguments, ScriptNode Node)
Gets TabIDs based in restrictions in input arguments.
Definition: GetTabIDs.cs:80
Reloads all open pages (tabs) showing a specific page, that include the Events.js file.
Definition: ReloadPage.cs:12
override string FunctionName
Name of the function
Definition: ReloadPage.cs:52
override string[] DefaultArgumentNames
Default Argument names
Definition: ReloadPage.cs:57
ReloadPage(ScriptNode Page, ScriptNode QueryFilter, int Start, int Length, Expression Expression)
Gets an array of Tab IDs (as strings) of currently open pages, given certain conditions.
Definition: ReloadPage.cs:44
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
Definition: ReloadPage.cs:65
ReloadPage(int Start, int Length, Expression Expression)
Gets an array of Tab IDs (as strings) of currently open pages, given certain conditions.
Definition: ReloadPage.cs:19
ReloadPage(ScriptNode Page, int Start, int Length, Expression Expression)
Gets an array of Tab IDs (as strings) of currently open pages, given certain conditions.
Definition: ReloadPage.cs:31
Class managing a script expression.
Definition: Expression.cs:39
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes2Scalar
Two scalar parameters.
static readonly ArgumentType[] argumentTypes0
Zero parameters.
static readonly ArgumentType[] argumentTypes1Normal
One scalar parameter.
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
Expression Expression
Expression of which the node is a part.
Definition: ScriptNode.cs:177
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:20