UNPKG

@xuda.io/xuda-widget-plugin-file-upload

Version:

Xuda File Upload widget plugin

125 lines (124 loc) 2.69 kB
export const methods = { _default: { name: "Default", tooltip: "", fields: { file_upload_drop_area_label: { label: "Drop Area Label", type: "string", }, file_upload_allow_multiple_files: { label: "Allow Multiple Files", type: "string", render: "segment", tooltip: "", options: [ { label: "No", value: "", }, { label: "Yes", value: "Y", }, ], }, instant_file_upload: { label: "Instant Upload", type: "string", render: "segment", tooltip: "", options: [ { label: "Yes", value: "", }, { label: "No", value: "N", }, ], }, clear_on_file_upload: { label: "Clear on File Upload", type: "string", render: "segment", tooltip: "", options: [ { label: "No", value: "", }, { label: "Yes", value: "Y", }, ], }, file_upload_mime_type_preset: { label: "Mime Type", type: "string", render: "select", tooltip: "", options: [ { label: "Select", value: "", }, { label: "Video", value: "video", }, { label: "Audio", value: "audio", }, { label: "Image", value: "image", }, ], }, file_upload_custom_mime_types: { label: "Custom Mime Types", type: "string", tooltip: "Separate with commas", }, public_file: { label: "Public File", type: "string", render: "segment", tooltip: "", options: [ { label: "No", value: "", }, { label: "Yes", value: "Y", }, ], }, file_upload_folder: { label: "Upload Folder", type: "string", }, file_upload_init_file_array: { label: "Init Files Array", type: "string", }, event_name_for_successful_callback: { label: "Successful Callback", type: "string", render: "eventId", }, event_name_for_successful_remove_callback: { label: "Successful Remove Callback", type: "string", render: "eventId", }, }, response: { uploaded_files: "" }, }, };