/// <inheritdoc/> private protected override async Task InstantiateMcwComponent() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBSwitch.init", ElementReference, ComponentValue);
public async void SetToggleProp(string elementID, string propName, bool propState) { await JsRuntime.InvokeVoidAsync("Toggle.setToggleProp", $"#{elementID}", propName, propState); }
/// <summary> /// Callback for value the Disabled value setter. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnDisabledSetCallback(object sender, EventArgs e) => InvokeAsync(async() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBSwitch.setDisabled", ElementReference, AppliedDisabled));
public async Task StartUpload() { await JsRuntime.InvokeVoidAsync("largeStart", InputFileElement, ProgressElement, ServerUrl, DotNetObjectReference.Create(this)); }
public void SetStyle(ElementReference elem, string key, string value) { JsRuntime.InvokeVoidAsync("SetStylesByReference", elem, key, value); }
/// <summary> /// Callback for value the Disabled value setter. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnDisabledSetCallback(object sender, EventArgs e) => InvokeAsync(async() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBChipsSelectMulti.setDisabled", ChipsReference, AppliedDisabled));
/// <inheritdoc/> private protected override async Task DestroyMcwComponent() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBChipsSelectMulti.destroy", ChipsReference);
/// <summary> /// Callback for value the value setter. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnValueSetCallback(object sender, EventArgs e) { Panel.SetParameters(true, Value); InvokeAsync(() => JsRuntime.InvokeVoidAsync("MaterialBlazor.MBDatePicker.listItemClick", Panel.ListItemReference, Utilities.DateToString(Value, DateFormat)).ConfigureAwait(false)); }
public async Task InitializeAsync() { await JsRuntime.InvokeVoidAsync(BuildJsFunctionPath("init"), ElementRef, ObjectRef); }
/// <summary> /// Callback for value the Disabled value setter. MBList is a special case where Material.Blazor re-renders the component when Disabled is set. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnDisabledSetCallback(object sender, EventArgs e) => InvokeAsync(async() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBList.init", ElementReference, KeyboardInteractions && !AppliedDisabled, Ripple));
/// <inheritdoc/> private protected override async Task InstantiateMcwComponent() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBList.init", ElementReference, KeyboardInteractions&& !AppliedDisabled, Ripple);
/// <inheritdoc/> private protected override async Task InitializeMdcComponent() => await JsRuntime.InvokeVoidAsync("material_blazor.datePicker.init", ElementReference);
protected async Task Save() { await JsRuntime.InvokeVoidAsync("laterlist.collapse", $"#{CollapseCardId}", "hide"); await OnSave.InvokeAsync(InternalTodoList); }
public async void SetToggle(string elementID, bool isChecked) { await JsRuntime.InvokeVoidAsync("Toggle.setToggle", $"#{elementID}", isChecked); }
/// <inheritdoc/> private protected override async Task DestroyMcwComponent() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBSwitch.destroy", ElementReference);
public async Task ShowModalAsync() { await JsRuntime.InvokeVoidAsync(BuildJsFunctionPath("showModal"), ElementRef); }
/// <summary> /// Callback for value the value setter. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnValueSetCallback(object sender, EventArgs e) => InvokeAsync(async() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBChipsSelectMulti.setSelected", ChipsReference, Items.Select(x => Value.Contains(x.SelectedValue)).ToArray()));
public async Task CloseModalAsync(string returnValue = null) { await JsRuntime.InvokeVoidAsync(BuildJsFunctionPath("closeModal"), ElementRef, returnValue); }
/// <inheritdoc/> private protected override async Task InstantiateMcwComponent() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBChipsSelectMulti.init", ChipsReference, IsSingleSelect, ObjectReference);
/// <summary> /// Callback for value the Disabled value setter. MBList is a special case where Material.Blazor re-renders the component when Disabled is set. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnDisabledSetCallback(object sender, EventArgs e) => InvokeAsync(() => JsRuntime.InvokeVoidAsync("material_blazor.list.init", ElementReference, (KeyboardInteractions && !AppliedDisabled), Ripple));
protected async Task NewReplyAsync() { await JsRuntime.InvokeVoidAsync("atlas.interop.scrollToTarget", "reply"); }
/// <inheritdoc/> private protected override async Task InitializeMdcComponent() => await JsRuntime.InvokeVoidAsync("material_blazor.list.init", ElementReference, (KeyboardInteractions && !AppliedDisabled), Ripple);
private void SetStyle(string id, string styleKey, string value) { JsRuntime.InvokeVoidAsync("SetStyles", id, styleKey, value); }
/// <summary> /// Callback for value the value setter. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnValueSetCallback(object sender, EventArgs e) => InvokeAsync(async() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBSwitch.setChecked", ElementReference, Value));
public async ValueTask DisposeAsync() { await JsRuntime.InvokeVoidAsync("browserInterop.removeObjectRef", JsObjectRefId); }
public ValueTask AttachToAsync(ElementReference elemRef) { return(JsRuntime.InvokeVoidAsync("blazorGooglePay.attachButton", elemRef, JsObjectRef)); }