How to disable the "View Details" button in the image preview?

3

I'm using: link

Here is an example in jsfidde: link

How to disable this button:

Hereisthecode:

HTML:

<inputid="input-id" type="file" class="file" data-preview-file-type="text">

JS:

$("#input-id").fileinput({ showRemove: true, showUpload: false, showCaption: true, showZoom: true, zoomIcon: false });
    
asked by anonymous 18.02.2017 / 19:14

3 answers

4

Directly by the plugin I could not remove, I managed using css:

.file-footer-buttons {
    display: none;
}

I just stopped displaying the div that contains the buttons at the bottom.

    
18.02.2017 / 19:41
2

Add your options: {'fileActionSettings':{'showZoom': false}

$("#input-id").fileinput({
     fileActionSettings: {
         showZoom: false
     },
     showRemove: true,
     showUpload: false,
     showCaption: true,
     showZoom: true,
     zoomIcon: false
});
    
18.02.2017 / 19:53
0

Just disable it does not make sense since it will pass the idea that it is not working as it should .. ie "bugado" what can be done is using a display: none in CSS marking it as! important because it certainly will read according to css link ..

.krajee-default .file-footer-buttons {
float: right;
display: none;

}

    
18.02.2017 / 21:35