aminkt/yii2-jquery-uploader-widget

There is no license information available for the latest version (dev-master) of this package.

A widget based on https://innostudio.de/fileuploader to create a file input to upload files for yii2 framework

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2018-03-17 14:44 UTC

This package is auto-updated.

Last update: 2024-11-09 03:31:55 UTC


README

How to install this module:

Step1: Add flowing line to require part of composer.json :

"aminkt/yii2-map-location-picker": "@dev",

And after that run bellow command in your composer :

Composer update aminkt/yii2-map-location-picker

Step2: Add flowing lines in your application view file:

echo LocationInput::widget([
    'apiKey' => 'Your api key',
    'name' => 'field name',
    'id' => 'field id',
    'options' => [
        // Input options
    ],
    'mapOptions' => [
        'center' => [
            'lat' => 37.4419,
            'lng' => -122.1419,
        ],
        'zoom' => 13,
        // Other google map options.
    ],
    'markerOptions' => [
        'draggable'=> true,
        // Other google map maker options.
    ],
    'disableLocationPicker' => 0, // Or 1 to define input become enabled or not to use just map view.
    'width' => '100%', // Map container width
    'height' => '200px', // Map container height
    'containerOptions' => [
        'class' => 'map-container' // Map container html options.
    ]
]);