jquery-filepond

WebJar for jquery-filepond

Лицензия

Лицензия

MIT
Категории

Категории

Github Инструменты разработки Контроль версий
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

github-com-pqina-jquery-filepond
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

jquery-filepond
WebJar for jquery-filepond
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/pqina/jquery-filepond

Скачать github-com-pqina-jquery-filepond

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-pqina-jquery-filepond/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-pqina-jquery-filepond</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-pqina-jquery-filepond/
implementation 'org.webjars.npm:github-com-pqina-jquery-filepond:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-pqina-jquery-filepond/
implementation ("org.webjars.npm:github-com-pqina-jquery-filepond:1.0.0")
'org.webjars.npm:github-com-pqina-jquery-filepond:jar:1.0.0'
<dependency org="org.webjars.npm" name="github-com-pqina-jquery-filepond" rev="1.0.0">
  <artifact name="github-com-pqina-jquery-filepond" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-pqina-jquery-filepond', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "github-com-pqina-jquery-filepond" % "1.0.0"
[org.webjars.npm/github-com-pqina-jquery-filepond "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

jQuery FilePond

jQuery FilePond is a handy jQuery adapter for FilePond, a JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience.

License: MIT npm version

Install from npm

npm install jquery-filepond --save

Or form a CDN:

<input type="file" class="my-pond" name="filepond"/>

<!-- include jQuery library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>

<!-- include FilePond library -->
<script src="https://unpkg.com/filepond/dist/filepond.min.js"></script>

<!-- include FilePond plugins -->
<script src="https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.js"></script>

<!-- include FilePond jQuery adapter -->
<script src="https://unpkg.com/jquery-filepond/filepond.jquery.js"></script>

<script>
  $(function(){
  
    // First register any plugins
    $.fn.filepond.registerPlugin(FilePondPluginImagePreview);

    // Turn input element into a pond
    $('.my-pond').filepond();

    // Set allowMultiple property to true
    $('.my-pond').filepond('allowMultiple', true);
  
    // Listen for addfile event
    $('.my-pond').on('FilePond:addfile', function(e) {
        console.log('file added event', e);
    });

    // Manually add a file using the addfile method
    $('.my-pond').first().filepond('addFile', 'index.html').then(function(file){
      console.log('file added', file);
    });
  
  });
</script>

Read the docs for more information

Версии библиотеки

Версия
1.0.0