Upload.Prop Type

• contents (string | list with values of type: string) - The contents of the uploaded file as a binary string • filename (string | list with values of type: string) - The name of the file(s) that was(were) uploaded. Note that this does not include the path of the file (for security reasons). • last_modified (number | list with values of type: number) - The last modified date of the file that was uploaded in unix time (seconds since 1970). • children (a list of or a singular dash component, string or number | string) - Contents of the upload component • accept (string) - 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 • disabled (boolean; default false) - Enable/disable the upload component entirely • disable_click (boolean; default false) - Disallow clicking on the component to open the file dialog • max_size (number; default -1) - Maximum file size in bytes. If `-1`, then infinite • min_size (number; default 0) - Minimum file size in bytes • multiple (boolean; default false) - Allow dropping multiple files • className (string) - HTML class name of the component • className_active (string) - HTML class name of the component while active • className_reject (string) - HTML class name of the component if rejected • className_disabled (string) - HTML class name of the component if disabled • style (record; default {}) - CSS styles to apply • style_active (record; default { borderStyle: 'solid', borderColor: '#6c6', backgroundColor: '#eee', }) - CSS styles to apply while active • style_reject (record; default { borderStyle: 'solid', borderColor: '#c66', backgroundColor: '#eee', }) - CSS styles if rejected • style_disabled (record; default { opacity: 0.5, }) - CSS styles if disabled • loading_state (record with the fields: 'is_loading: boolean (optional)', 'prop_name: string (optional)', 'component_name: string (optional)') - Object that holds the loading state object coming from dash-renderer

Union cases

Union case Description

Accept string

Full Usage: Accept string

Parameters:
    Item : string

Item : string

ClassName string

Full Usage: ClassName string

Parameters:
    Item : string

Item : string

ClassNameActive string

Full Usage: ClassNameActive string

Parameters:
    Item : string

Item : string

ClassNameDisabled string

Full Usage: ClassNameDisabled string

Parameters:
    Item : string

Item : string

ClassNameReject string

Full Usage: ClassNameReject string

Parameters:
    Item : string

Item : string

Contents UploadContents

Full Usage: Contents UploadContents

Parameters:
Item : UploadContents

DisableClick bool

Full Usage: DisableClick bool

Parameters:
    Item : bool

Item : bool

Disabled bool

Full Usage: Disabled bool

Parameters:
    Item : bool

Item : bool

Filename UploadFileName

Full Usage: Filename UploadFileName

Parameters:
Item : UploadFileName

LastModified UploadLastModified

Full Usage: LastModified UploadLastModified

Parameters:
Item : UploadLastModified

LoadingState LoadingState

Full Usage: LoadingState LoadingState

Parameters:
Item : LoadingState

MaxSize int

Full Usage: MaxSize int

Parameters:
    Item : int

Item : int

MinSize int

Full Usage: MinSize int

Parameters:
    Item : int

Item : int

Multiple bool

Full Usage: Multiple bool

Parameters:
    Item : bool

Item : bool
Item : DashComponentStyle

StyleActive obj

Full Usage: StyleActive obj

Parameters:
    Item : obj

Item : obj

StyleDisabled obj

Full Usage: StyleDisabled obj

Parameters:
    Item : obj

Item : obj

StyleReject obj

Full Usage: StyleReject obj

Parameters:
    Item : obj

Item : obj

Static members

Static member Description

Prop.toDynamicMemberDef prop

Full Usage: Prop.toDynamicMemberDef prop

Parameters:
Returns: string * obj
prop : Prop
Returns: string * obj