-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fileinput file-upload-indicator is visible when actionDrag is empty #942
Comments
Read about fileActionSettings in docs. For your use case just set |
The issue is still there I have created a jsfiddle https://jsfiddle.net/7z01jb07/1/ used some demo code from here |
Another issue if I use the explorer theme the upload indicator is also removed when I set Maybe a independent showIndicator setting would be better instead of checking for fileActions. if you remove this check in the |
Sry to disturb, e.g. for the explorer theme instead of Or you wanted to render the {indicator} in the actions which looks like more possible because you have the {indicator} in the But then you shouldn't do the replace the tag in the footer template inside |
Please share a fiddle and the scenario where it does not work... not able to reproduce... |
It was working the the fiddle above, when you have disabled showDrag and showZoom. See here (try to upload a new image) it is still because of this line in _renderFileActions because showUpload, showDelete, showZoom and showDrag is false. why don't you add the {indicator} directly to the footer template part.
test here: then the indicator is rendred independent if an action is rendered or not. |
Will update. |
looks like it is working now so this issue can be closed. I found 2 other issues but for them i will open new issues. |
Hi. How to remove file indicator? I read your documents but i couldn't find how to remove file indicator. I only found the ff: showUpload: boolean, whether to show the upload button in the thumbnail showRemove: boolean, whether to show the remove button in the thumbnail showZoom: boolean, whether to show the zoom button in the thumbnail showDrag: boolean, whether to show the drag button in the thumbnail (applicable only for initial preview content) Please help me. |
Read |
Thank you for the response. I'll check it. |
Yeah! It works!. Thanks. I have another one. How to remove delete button in action bar? fileActionSettings : { but remove button still displayed.... Please help me again. |
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
Hi I wanted to disable the drag/sort possibility completely of the Fileinput and set
'actionDrag' => '',
(empty)Expected behavior and actual behavior
When I follow those steps, I see...
this yellow bulb in the lower left instead of the drag handle.
I was expecting...
to just disable the drag handle and see nothing ;)
Is there another way to remove the drag handle?
The small Bulb is coming from the css by
.krajee-default .file-drag-handle, .krajee-default .file-upload-indicator {
padding: 8px 8px 1px 3px;
}
The indicator is just isn't overlapped by the missing file-drag-handle.
I couldn't find another possibility to remove the re-order possibility.
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: