2017 © Pedro Peláez
 

yii2-extension yii2-kendoui

Kendo UI Extension for Yii 2

image

liuxm6/yii2-kendoui

Kendo UI Extension for Yii 2

  • Monday, March 27, 2017
  • by liuxm6
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Kendo UI Extension for Yii 2

Currently implemented DataSource which is generating on ActiveRecord model-base., (*1)

Can be used with: * Kendo Grid * Kendo List * other features are requiring DataSources, (*2)

How to use?

@app/controllers/AddressController.php, (*3)

use \tigrov\kendoui\KendoBuild;

class AddressController extends Controller
{
    public function actionIndex()
    {
        return $this->render('index');
    }

    public static function kendoActions()
    {
        // Address extends of ActiveRecord
        $options = [
            'model' => Address::className(),
            'query' => [
                'where' => ['status_id' => Address::STATUS_ACTIVE],
            ],
        ];

        return KendoBuild::actions($options);
    }

    public function actions()
    {
        return array_merge(parent::actions(), static::kendoActions());
    }
}

@app/views/address/index.php, (*4)

setTitle(\Yii::t('user', 'Addresses'));

KendoAsset::register($this);

$dataSource = \Yii::createObject([
    'class' => DataSource::className(),
]);
$dataSourceSettings = $dataSource->getSettings();
$dataSourceJson = json_encode($dataSourceSettings);

$this->registerJs(



= \Yii::t('pro', 'Add new Address'); ?>, (*5)

The Versions

27/03 2017

dev-master

9999999-dev

Kendo UI Extension for Yii 2

  Sources   Download

BSD-3-Clause

The Requires

 

by Sergey Tigrov

yii2 datasource kendo kendoui