zakharov-andrew/yii2-survey-forms-widget
Composer 安装命令:
composer require zakharov-andrew/yii2-survey-forms-widget
包简介
Yii2 Survey Form widget
README 文档
README
Survey module for Yii2 application. Use SurveyForms.js javascript library
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require zakharov-andrew/yii2-survey-forms-widget
or add
"zakharov-andrew/yii2-survey-forms-widget": "*"
to the require section of your composer.json file.
Usage
use surveyforms\survey\Survey; echo SurveyWidget::widget([ 'id' => 'survey-forms', 'title' => 'First Survey Test', 'description' => 'Simple description. SurveyForms.js demo', 'background_color' => '#f7fafc', 'question' => [ (object)[ 'title' => 'Test Title 1', 'required' => true, 'options' => ['one', 'two', 'zero'] ], (object)[ 'title' => 'Test Title 2', 'required' => false, 'options' => ['1', '2', '3'], 'score' => 5 ], (object)[ 'title' => 'Test Title 3', 'type' => 'select', 'required' => true, 'options' => ['option 1', 'option 2', 'option 3'], 'score' => 5 ], ] ]);
License
yii2-survey-forms-widget it is available under a MIT License. Detailed information can be found in the LICENSE.md.
统计信息
- 总下载量: 153
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-17