forked from FritzAndFriends/BlazorWebFormsComponents
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBaseExtenderComponent.cs
More file actions
29 lines (25 loc) · 796 Bytes
/
Copy pathBaseExtenderComponent.cs
File metadata and controls
29 lines (25 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
namespace BlazorAjaxToolkitComponents;
/// <summary>
/// Base class for Ajax Control Toolkit extender components.
/// Extenders attach behavior to a target control identified by <see cref="TargetControlID"/>.
/// Full design pending — see Forge's architecture spec.
/// </summary>
public abstract class BaseExtenderComponent : ComponentBase, IAsyncDisposable
{
[Inject]
protected IJSRuntime JS { get; set; } = default!;
/// <summary>
/// The ID of the control this extender targets.
/// </summary>
[Parameter]
public string TargetControlID { get; set; } = string.Empty;
/// <inheritdoc />
public virtual ValueTask DisposeAsync()
{
return ValueTask.CompletedTask;
}
}