HtmlForgeX

API Reference

Class

TablerDropzone

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Modifiers sealed

Minimal Tabler-styled dropzone. Renders a drop area with fallback file input. No external JS required; integrates visually with Tabler. Advanced uploading can be added later.

Inheritance

Constructors

Methods

public TablerDropzone Accept(String accept) #
Returns: TablerDropzone

Restrict accepted mime types/extensions (e.g., "image/*,.pdf").

Parameters

accept System.String requiredposition: 0
public TablerDropzone Hint(String text) #
Returns: TablerDropzone

Optional hint displayed below the title.

Parameters

text System.String requiredposition: 0
public TablerDropzone MaxFileBytes(Int64 bytes) #
Returns: TablerDropzone

Limits the size of a single file in bytes.

Parameters

bytes System.Int64 requiredposition: 0
public TablerDropzone MaxFiles(Int32 maxFiles) #
Returns: TablerDropzone

Limits the number of files selectable/droppable.

Parameters

maxFiles System.Int32 requiredposition: 0
public TablerDropzone MaxTotalBytes(Int64 bytes) #
Returns: TablerDropzone

Limits the combined size of selected files in bytes.

Parameters

bytes System.Int64 requiredposition: 0
public TablerDropzone Multiple(Boolean enable = true) #
Returns: TablerDropzone

Allow multiple file selection.

Parameters

enable System.Boolean = true optionalposition: 0
public TablerDropzone Name(String name) #
Returns: TablerDropzone

Sets the input name attribute.

Parameters

name System.String requiredposition: 0
RegisterLibraries() #

Registers Tabler and helper script resources.

public TablerDropzone Settings(Action<DropzoneSettings> configure) #
Returns: TablerDropzone

Settings sub‑builder to group less common toggles and keep the root surface tidy.

Parameters

configure System.Action{HtmlForgeX.DropzoneSettings} requiredposition: 0
public TablerDropzone ShowSelectedFiles(Boolean show = true) #
Returns: TablerDropzone

Controls whether the selected files list is shown.

Parameters

show System.Boolean = true optionalposition: 0
public TablerDropzone Title(String text) #
Returns: TablerDropzone

Sets the title displayed in the area.

Parameters

text System.String requiredposition: 0
public override String ToString() #
Returns: String

Builds the HTML for the dropzone area and fallback input.