Upload.Attr Type

A list of children or a property for this dash component

Union cases

Union case Description

Children DashComponent list

Full Usage: Children DashComponent list

Parameters:
Item : DashComponent list

Prop Prop

Full Usage: Prop Prop

Parameters:
Item : Prop

Static members

Static member Description

Attr.accept p

Full Usage: Attr.accept p

Parameters:
    p : string

Returns: Attr

Allow specific types of files. See https://github.com/okonet/attr-accept for more information. Keep in mind that mime type determination is not reliable across platforms. CSV files, for example, are reported as text/plain under macOS but as application/vnd.ms-excel under Windows. In some cases there might not be a mime type set at all. See: https://github.com/react-dropzone/react-dropzone/issues/276

p : string
Returns: Attr

Attr.children value

Full Usage: Attr.children value

Parameters:
Returns: Attr

The child or children of this dash component

value : seq<DashComponent>
Returns: Attr

Attr.children value

Full Usage: Attr.children value

Parameters:
Returns: Attr

The child or children of this dash component

value : DashComponent list
Returns: Attr

Attr.children value

Full Usage: Attr.children value

Parameters:
Returns: Attr

The child or children of this dash component

value : DashComponent
Returns: Attr

Attr.children value

Full Usage: Attr.children value

Parameters:
Returns: Attr

The child or children of this dash component

value : Guid
Returns: Attr

Attr.children value

Full Usage: Attr.children value

Parameters:
    value : float

Returns: Attr

The child or children of this dash component

value : float
Returns: Attr

Attr.children value

Full Usage: Attr.children value

Parameters:
    value : string

Returns: Attr

The child or children of this dash component

value : string
Returns: Attr

Attr.children value

Full Usage: Attr.children value

Parameters:
    value : int

Returns: Attr

The child or children of this dash component

value : int
Returns: Attr

Attr.className p

Full Usage: Attr.className p

Parameters:
    p : string

Returns: Attr

HTML class name of the component

p : string
Returns: Attr

Attr.classNameActive p

Full Usage: Attr.classNameActive p

Parameters:
    p : string

Returns: Attr

HTML class name of the component while active

p : string
Returns: Attr

Attr.classNameDisabled p

Full Usage: Attr.classNameDisabled p

Parameters:
    p : string

Returns: Attr

HTML class name of the component if disabled

p : string
Returns: Attr

Attr.classNameReject p

Full Usage: Attr.classNameReject p

Parameters:
    p : string

Returns: Attr

HTML class name of the component if rejected

p : string
Returns: Attr

Attr.contents p

Full Usage: Attr.contents p

Parameters:
Returns: Attr

The contents of the uploaded file as a binary string

p : UploadContents
Returns: Attr

Attr.disableClick p

Full Usage: Attr.disableClick p

Parameters:
    p : bool

Returns: Attr

Disallow clicking on the component to open the file dialog

p : bool
Returns: Attr

Attr.disabled p

Full Usage: Attr.disabled p

Parameters:
    p : bool

Returns: Attr

Enable/disable the upload component entirely

p : bool
Returns: Attr

Attr.filename p

Full Usage: Attr.filename p

Parameters:
Returns: Attr

The name of the file(s) that was(were) uploaded. Note that this does not include the path of the file (for security reasons).

p : UploadFileName
Returns: Attr

Attr.lastModified p

Full Usage: Attr.lastModified p

Parameters:
Returns: Attr

The last modified date of the file that was uploaded in unix time (seconds since 1970).

p : UploadLastModified
Returns: Attr

Attr.loadingState p

Full Usage: Attr.loadingState p

Parameters:
Returns: Attr

Object that holds the loading state object coming from dash-renderer

p : LoadingState
Returns: Attr

Attr.maxSize p

Full Usage: Attr.maxSize p

Parameters:
    p : int

Returns: Attr

Maximum file size in bytes. If `-1`, then infinite

p : int
Returns: Attr

Attr.minSize p

Full Usage: Attr.minSize p

Parameters:
    p : int

Returns: Attr

Minimum file size in bytes

p : int
Returns: Attr

Attr.multiple p

Full Usage: Attr.multiple p

Parameters:
    p : bool

Returns: Attr

Allow dropping multiple files

p : bool
Returns: Attr

Attr.style p

Full Usage: Attr.style p

Parameters:
Returns: Attr

CSS styles to apply

p : seq<Style>
Returns: Attr

Attr.styleActive p

Full Usage: Attr.styleActive p

Parameters:
    p : obj

Returns: Attr

CSS styles to apply while active

p : obj
Returns: Attr

Attr.styleDisabled p

Full Usage: Attr.styleDisabled p

Parameters:
    p : obj

Returns: Attr

CSS styles if disabled

p : obj
Returns: Attr

Attr.styleReject p

Full Usage: Attr.styleReject p

Parameters:
    p : obj

Returns: Attr

CSS styles if rejected

p : obj
Returns: Attr