Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
indiscale-files-ui-react
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
indiscale-files-ui-react
Commits
0f1e71c2
Commit
0f1e71c2
authored
2 years ago
by
Jose Manuel Serrano Amaut
Browse files
Options
Downloads
Patches
Plain Diff
[WIP]: Add header config and footer config section
parent
ae64751f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/demo/DropzoneDemoPage.jsx
+116
-3
116 additions, 3 deletions
src/pages/demo/DropzoneDemoPage.jsx
with
116 additions
and
3 deletions
src/pages/demo/DropzoneDemoPage.jsx
+
116
−
3
View file @
0f1e71c2
...
@@ -247,10 +247,9 @@ const DropzoneDemoPage = (props) => {
...
@@ -247,10 +247,9 @@ const DropzoneDemoPage = (props) => {
<
li
>
<
li
>
Dropzone with the
{
"
"
}
Dropzone with the
{
"
"
}
<
TypeHighlight
>
actionButtons.deleteButton
</
TypeHighlight
>
prop
<
TypeHighlight
>
actionButtons.deleteButton
</
TypeHighlight
>
prop
defined will display a button which deletes all files. This
defined will display a button which deletes all files.
button will be visible only during the "upload" process.
<
br
/>
<
br
/>
button will be visible only
{
"
"
}
this
button will be visible only
{
"
"
}
<
strong
>
when the "upload" process is not active
</
strong
>
.
<
strong
>
when the "upload" process is not active
</
strong
>
.
</
li
>
</
li
>
<
li
>
<
li
>
...
@@ -277,6 +276,120 @@ const DropzoneDemoPage = (props) => {
...
@@ -277,6 +276,120 @@ const DropzoneDemoPage = (props) => {
<
CodeDemoDropzoneActionButtons
/>
<
CodeDemoDropzoneActionButtons
/>
</
section
>
</
section
>
<
section
id
=
"header-config"
>
<
SubTitle
content
=
"Dropzone header config"
/>
<
DescParagraph
>
You can use the
<
TypeHighlight
>
headerConfig
</
TypeHighlight
>
prop to
define what will be displayed in the header. Type definition can be
found
<
AnchorToTab
href
=
"/types#header-config"
>
here
</
AnchorToTab
>
<
ul
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
headerConfig.deleteFiles
</
TypeHighlight
>
prop set
to
<
TypeHighlight
>
true
</
TypeHighlight
>
will display a delete
button which triggers the delete process.
<
br
/>
This button will be visible only
{
"
"
}
<
strong
>
when the "upload" process is not active
</
strong
>
.
</
li
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
headerConfig.cleanFiles
</
TypeHighlight
>
prop set
to
<
TypeHighlight
>
true
</
TypeHighlight
>
will display a "clean"
buton. This button will be visible only during the "upload"
process.
<
br
/>
button will be visible only
{
"
"
}
<
strong
>
when the "upload" process is not active
</
strong
>
.
</
li
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
headerConfig.uploadFiles
</
TypeHighlight
>
prop set
to
<
TypeHighlight
>
true
</
TypeHighlight
>
will display a button
which starts the upload process.
</
li
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
headerConfig.uploading
</
TypeHighlight
>
prop set
to
<
TypeHighlight
>
true
</
TypeHighlight
>
will display a loading
icon
<
strong
>
during the "upload" process
</
strong
>
.
</
li
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
headerConfig.maxFileSize
</
TypeHighlight
>
prop set
to
<
TypeHighlight
>
true
</
TypeHighlight
>
will display the max file
size label.
</
li
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
headerConfig.validFilesCount
</
TypeHighlight
>
prop
set to
<
TypeHighlight
>
true
</
TypeHighlight
>
will display the
current count of valid files.
</
li
>
</
ul
>
By default all of these values are set to
{
"
"
}
<
TypeHighlight
>
true
</
TypeHighlight
>
.
</
DescParagraph
>
<
Paper
variant
=
"outlined"
style
=
{
{
padding
:
"
25px
"
}
}
>
<
DemoDropzoneActionButtons
/>
</
Paper
>
<
CodeDemoDropzoneActionButtons
/>
</
section
>
<
section
id
=
"footer-config"
>
<
SubTitle
content
=
"Dropzone footer config"
/>
<
DescParagraph
>
You can use the
<
TypeHighlight
>
footerConfig
</
TypeHighlight
>
prop to
define what will be displayed in the footer. Type definition can be
found
<
AnchorToTab
href
=
"/types#footer-config"
>
here
</
AnchorToTab
>
<
ul
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
footerConfig.allowedTypesLabel
</
TypeHighlight
>
{
"
"
}
prop set to
<
TypeHighlight
>
false
</
TypeHighlight
>
will hide the
label that indicates the files types allowed.
<
br
/>
This label will be hidden
<
strong
>
when the "upload" process is active
</
strong
>
.
</
li
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
footerConfig.uploadProgressMessage
</
TypeHighlight
>
{
"
"
}
prop set to
<
TypeHighlight
>
false
</
TypeHighlight
>
will not
display the label with the upload progress. This label will be
visible
<
strong
>
only during the "upload" process
</
strong
>
.
</
li
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
footerConfig.uploadResultMessage
</
TypeHighlight
>
{
"
"
}
prop set to
<
TypeHighlight
>
false
</
TypeHighlight
>
will not
display a label at the end of the upload process. This label can
{
"
"
}
be visible for 2 seconds just
{
"
"
}
<
strong
>
after the "upload" process finishes
</
strong
>
.
</
li
>
<
li
>
Dropzone with the
{
"
"
}
<
TypeHighlight
>
footerConfig.noMissingFilesLabel
</
TypeHighlight
>
{
"
"
}
prop set to
<
TypeHighlight
>
false
</
TypeHighlight
>
will not
display a label when upload starts with no uploadable files.
</
li
>
</
ul
>
By default all of these values are set to
{
"
"
}
<
TypeHighlight
>
true
</
TypeHighlight
>
.
</
DescParagraph
>
<
Paper
variant
=
"outlined"
style
=
{
{
padding
:
"
25px
"
}
}
>
<
DemoDropzoneActionButtons
/>
</
Paper
>
<
CodeDemoDropzoneActionButtons
/>
</
section
>
<
section
id
=
"api"
>
<
section
id
=
"api"
>
<
SubTitle
content
=
"API"
/>
<
SubTitle
content
=
"API"
/>
<
DescParagraph
>
<
DescParagraph
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment