Пример #1
0
        public async Task <BlazorQueryDOM> FadeOut(Action <string> completed)
        {
            var actionWrapper         = new ActionWrapper <string>(completed);
            var dotNetObjectReference = DotNetObjectReference.Create(actionWrapper);
            await JsRuntime.InvokeAsync <Task>(BlazorQueryList.FadeOut, CurrentSelector, dotNetObjectReference);

            return(this);
        }
Пример #2
0
        public async Task <BlazorQueryDOM> Load(string url, object data, Action <string, string, object> complete)
        {
            var actionWrapper         = new ActionWrapper <string, string, object>(complete);
            var dotNetObjectReference = DotNetObjectReference.Create(actionWrapper);
            await JSRuntimeInstance.InvokeAsync <Task>(BlazorQueryList.Load, CurrentSelector, url, data, dotNetObjectReference);

            return(this);
        }