Skip to content
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

Fix error docs to change icon #1784

Closed
FrederickChan opened this issue Mar 29, 2022 · 1 comment
Closed

Fix error docs to change icon #1784

FrederickChan opened this issue Mar 29, 2022 · 1 comment
Labels

Comments

@FrederickChan
Copy link

FrederickChan commented Mar 29, 2022

I've been modifying my work and I realized that you had a incorrect doc after looking into fileinput.js

The problem:

https://plugins.krajee.com/file-input/plugin-options#layoutTemplates

   icon: '<span class="bi-file-earmark-fill kv-caption-icon"></span>',
    caption: '<input readonly class="file-caption-name form-control {class}">\n',
    btnDefault: '<button type="{type}" title="{title}" class="{css}"{status} {tabIndexConfig}>{icon}{label}</button>',

This part is not "icon" but "fileIcon".

According to your latest release on github, this should be changed to:

     layoutTemplates: {                         
                            fileIcon:  '<i class="fas fa-fish"></i>',     
@kartik-v kartik-v added the docs label May 10, 2022
@kartik-v
Copy link
Owner

Fixed in docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants