Exemple #1
0
 /// <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);
 }
Exemple #3
0
 /// <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));
Exemple #4
0
 public async Task StartUpload()
 {
     await JsRuntime.InvokeVoidAsync("largeStart", InputFileElement, ProgressElement, ServerUrl, DotNetObjectReference.Create(this));
 }
Exemple #5
0
 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);
Exemple #8
0
 /// <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));
 }
Exemple #9
0
 public async Task InitializeAsync()
 {
     await JsRuntime.InvokeVoidAsync(BuildJsFunctionPath("init"), ElementRef, ObjectRef);
 }
Exemple #10
0
 /// <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));
Exemple #11
0
 /// <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);
 }
Exemple #15
0
 /// <inheritdoc/>
 private protected override async Task DestroyMcwComponent() => await JsRuntime.InvokeVoidAsync("MaterialBlazor.MBSwitch.destroy", ElementReference);
Exemple #16
0
 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()));
Exemple #18
0
 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));
Exemple #21
0
 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);
Exemple #23
0
 private void SetStyle(string id, string styleKey, string value)
 {
     JsRuntime.InvokeVoidAsync("SetStyles", id, styleKey, value);
 }
Exemple #24
0
 /// <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));
Exemple #25
0
 public async ValueTask DisposeAsync()
 {
     await JsRuntime.InvokeVoidAsync("browserInterop.removeObjectRef", JsObjectRefId);
 }
Exemple #26
0
 public ValueTask AttachToAsync(ElementReference elemRef)
 {
     return(JsRuntime.InvokeVoidAsync("blazorGooglePay.attachButton", elemRef, JsObjectRef));
 }