mdbhayani/yii2-activeform

Yii2 extended activeform widget

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2018-04-04 10:36 UTC

This package is not auto-updated.

Last update: 2024-03-21 11:57:20 UTC


README

A simple Yii2 extended ActiveForm widget.

Features

Requirements

  • Yii2
  • PHP 5.4+

Installation

The preferred way to install this extension is through composer.

php composer.phar require mdbhayani/yii2-activeform "*"

After the extension is installed, use it in your code wherever you need activeform.

Following is the example of a single date input field. It uses jquery daterangepicker for the input field.

echo $form->field($model, "formFieldName")->singleDateInput();

Following is the example of a date range input field. It uses jquery daterangepicker for the input field.
echo $form->field($model, "formFieldName")->dateRangeInput();

Following is the example of a drop down field. It uses jquery select2 for the input field.
echo $form->field($model, "formFieldName")->dropDownList();

Following is the example of a text editor field. It uses summernote for the textarea field.
echo $form->field($model, "formFieldName")->wysiwyg();