FnzDiv.razor 373 B

12345678910111213
  1. @inherits FnzComponentBase
  2. @code {
  3. protected override string Prefix => base.Prefix + ".div";
  4. [Parameter] public RenderFragment ChildContent { get; set; }
  5. }
  6. <div id="@ElementId" @attributes="InputAttributes">@ChildContent</div>
  7. @code
  8. {
  9. public async Task<int> GetClientHeight() => await JSRuntime.InvokeAsync<int>(Prefix + ".getClientHeight", ElementId);
  10. }