protected override async Task OnFirstAfterRenderAsync() { Config.Ref = Ref; thisReference = DotNetObjectReference.Create(this); await JsInterop.InvokeAsync <object>("Orions.CodeMirror.init", new object[] { thisReference, Config }); }
protected override async Task OnFirstAfterRenderAsync() { if (ShakaPlayerConfig == null || string.IsNullOrWhiteSpace(ShakaPlayerConfig.Id)) { throw new ArgumentException(nameof(ShakaPlayerConfig)); } await JsInterop.InvokeAsync <object>("Orions.ShakaPlayer.init", new object[] { ShakaPlayerConfig }); }
protected override async Task OnFirstAfterRenderAsync() { await Vm.Init(); var jsonData = Vm.GetJesonDesignData(); thisReference = DotNetObjectReference.Create(this); await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.Init", new object[] { thisReference, jsonData }); }
public async Task UpdateZone(string oldZone, string newZone) { if (!string.IsNullOrWhiteSpace(oldZone)) { await JsInterop.InvokeAsync <object>("Orions.MapZone.AddClassById", new object[] { oldZone, _hideElementCSS }); } if (!string.IsNullOrWhiteSpace(newZone)) { await JsInterop.InvokeAsync <object>("Orions.MapZone.RemoveClassById", new object[] { newZone, _hideElementCSS }); } }
protected override async Task OnFirstAfterRenderAsync() { thisReference = DotNetObjectReference.Create(this); await JsInterop.InvokeAsync <object>("Orions.MapZone.Init", new object[] { _zoneAreaId, _classNameOnMouseOver, thisReference }); if (!string.IsNullOrEmpty(Zone)) { var zones = Zone.Split(',', StringSplitOptions.RemoveEmptyEntries).Select(it => it.Trim()).ToArray(); foreach (var zone in zones) { await JsInterop.InvokeAsync <object>("Orions.MapZone.RemoveClassById", new object[] { zone, _hideElementCSS }); } } await base.OnInitializedAsync(); }
public async Task ShowMainMenu() { await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.ShowMainMenu"); }
public async Task HideCommonMenu() { await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.HideCommonMenu"); }
public async Task ZoomOut() { await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.ZoomOut"); }
public async Task RemoveElement() { thisReference = DotNetObjectReference.Create(this); await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.Remove", new object[] { thisReference }); }
public async Task RemovePlayer(string id) { await JsInterop.InvokeAsync <object>("Orions.ShakaPlayer.remove", new object[] { id }); }