You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/FileUpload/FileUpload.razor

18 lines
732 B

@inherits FormComponent<T, string>;
@typeparam T;
@namespace Connected.Components
@using Microsoft.AspNetCore.Components.Forms
<InputControl Class="@Classname" Style="@Style" Error="HasErrors" ErrorText="@GetErrorText()" Required="@Required">
<InputContent>
<InputFile OnChange="OnChange" id="@_id" class="@InputClass" style="@InputStyle" hidden="@(Hidden ? "" : null)" multiple="@(typeof(T) == typeof(IReadOnlyList<IBrowserFile>) ? "" : null)" accept="@Accept" @attributes="UserAttributes" />
@if (ButtonTemplate != null)
{
@ButtonTemplate(_id)
}
@if (SelectedTemplate != null)
{
@SelectedTemplate(_value)
}
</InputContent>
</InputControl>