How to use the filepond.supported function in filepond

To help you get started, we’ve selected a few filepond examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pqina / vue-filepond / dist / vue-filepond.esm.js View on Github external
const filteredComponentMethods = [
    'setOptions',
    'on',
    'off',
    'onOnce',
    'appendTo',
    'insertAfter',
    'insertBefore',
    'isAttachedTo',
    'replaceElement',
    'restoreElement',
    'destroy'
];

// Test if is supported on this client
const isSupported = supported();

// Setup initial prop types and update when plugins are added
const getNativeConstructorFromType = type =>
    ({
        string: String,
        boolean: Boolean,
        array: Array,
        function: Function,
        int: Number,
        serverapi: Object,
        object: Object
    }[type]);

// Activated props
const props = {};
github pqina / angular-filepond / src / component / filepond.component.ts View on Github external
EventEmitter,
    ViewEncapsulation,
    ElementRef,
    SimpleChanges,
    NgZone
} from '@angular/core';

import {
    OptionTypes,
    create,
    supported,
    registerPlugin as register
} from 'filepond';

// Do this once
const isSupported: boolean = supported();

// Methods not made available to the component
const filteredComponentMethods: Array = [
    'setOptions',
    'on',
    'off',
    'onOnce',
    'appendTo',
    'insertAfter',
    'insertBefore',
    'isAttachedTo',
    'replaceElement',
    'restoreElement',
    'destroy'
];
github pqina / angular-filepond / dist / component / filepond.component.js View on Github external
/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Component, EventEmitter, ViewEncapsulation, ElementRef, NgZone } from '@angular/core';
import { OptionTypes, create, supported, registerPlugin as register } from 'filepond';
// Do this once
var /** @type {?} */ isSupported = supported();
// Methods not made available to the component
var /** @type {?} */ filteredComponentMethods = [
    'setOptions',
    'on',
    'off',
    'onOnce',
    'appendTo',
    'insertAfter',
    'insertBefore',
    'isAttachedTo',
    'replaceElement',
    'restoreElement',
    'destroy'
];
// All the properties that can be bound
var /** @type {?} */ inputs = [];
github pqina / vue-filepond / lib / index.js View on Github external
const filteredComponentMethods = [
    'setOptions',
    'on',
    'off',
    'onOnce',
    'appendTo',
    'insertAfter',
    'insertBefore',
    'isAttachedTo',
    'replaceElement',
    'restoreElement',
    'destroy'
];

// Do this once
const isSupported = supported();

// Setup initial prop types and update when plugins are added
const getNativeConstructorFromType = type =>
    ({
        string: String,
        boolean: Boolean,
        array: Array,
        function: Function,
        int: Number,
        serverapi: Object
    }[type]);

// All the props
const props = {
    id: String
};
github pqina / react-filepond / index.js View on Github external
* FilePondPluginImageTransform 1.1.0
 * Licensed under MIT, https://opensource.org/licenses/MIT
 * Please visit https://pqina.nl/filepond for details.
 */
// test if file is of type image
import React, { createElement } from 'react';

// Import required methods and styles from the FilePond module, should not need anything else
import { create, supported, registerPlugin } from 'filepond';
import 'filepond/dist/filepond.min.css';

// We need to be able to call the registerPlugin method directly so we can add plugins
export { registerPlugin };

// Do this once
const isSupported = supported();

// returns file sources from the  child objects
const getFilesFromChildren = children =>
  React.Children.map(
    children,
    child => {
        if (child.props.type) {
            return {
                source: child.props.source,
                options: {
                    type: child.props.type
                }
            }
        }
        else {
            return child.props.source;
github pqina / ngx-filepond / src / app / modules / filepond / filepond.component.ts View on Github external
ElementRef,
  SimpleChanges,
  ViewEncapsulation,
  EventEmitter,
  NgZone,
  Output, 
  Input
} from '@angular/core';

import {
  create,
  supported
} from 'filepond';

// We test if filepond is supported on the current client
const isSupported: Boolean = supported();

// List of attributes for fallback input
const inputAttributes: Array = [
  'id', 
  'name',
  'class', 
  'multiple', 
  'required', 
  'disabled',
  'capture',
  'accept'
];

// Methods not made available on the component
const filteredComponentMethods: Array = [
  'setOptions',
github pqina / react-filepond / dist / react-filepond.esm.js View on Github external
* Copyright (c) 2019 PQINA
 * https://pqina.nl/filepond
 * 
 * Licensed under the MIT license.
 */

import React, { createElement } from 'react';

// Import required methods and styles from the FilePond module, should not need anything else
import { create, supported, registerPlugin, FileStatus } from 'filepond';

// We need to be able to call the registerPlugin method directly so we can add plugins
export { registerPlugin, FileStatus };

// Do this once
const isSupported = supported();

// filtered methods
const filteredMethods = [
  'setOptions',
  'on',
  'off',
  'onOnce',
  'appendTo',
  'insertAfter',
  'insertBefore',
  'isAttachedTo',
  'replaceElement',
  'restoreElement',
  'destroy'
];

filepond

FilePond, Where files go to stretch their bits.

MIT
Latest version published 4 months ago

Package Health Score

82 / 100
Full package analysis