aminkt / yii2-jquery-uploader-widget
该包的最新版本(dev-master)没有提供许可信息。
基于 https://innostudio.de/fileuploader 的小部件,用于为 yii2 框架创建文件输入以上传文件
dev-master
2018-03-17 14:44 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-09-09 03:12:18 UTC
README
如何安装此模块
步骤1: 将以下行添加到 composer.json
的 require 部分
"aminkt/yii2-map-location-picker": "@dev",
之后,在您的 composer 中运行以下命令
Composer update aminkt/yii2-map-location-picker
步骤2: 在您的应用程序视图文件中添加以下行
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. ] ]);