@filerobot/google-drive
Usage
From NPM
The plugin is on NPM as @filerobot/google-drive
npm install --save @filerobot/google-drive
then
import GoogleDrive from '@filerobot/google-drive'
...
...
...
filerobot.use(GoogleDrive, optionsObject)
From CDN
The plugin from CDN is found inside Filerobot global object Filerobot.GoogleDrive
const googleDrive = window.Filerobot.GoogleDrive
...
...
...
filerobot.use(googleDrive, optionsObject)
Options
There are some few options for this plugin for helping in customization, as follow:
target: plugin (required)
default: null
The Filerobot plugin that would contain/render this plugin and show it in their acquires or uploading options menu, most probably this would be explorer plugin.
example,
filerobot.use(GoogleDrive, { target: Explorer })
title: string
default: 'Google Drive'
The title/label that would be shown & used for the plugin.
default: null
If you need to pass additonal headers for in companion requests then pass them in this property.