2017 © Pedro Peláez
 

yii2-extension yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

image

kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  • Wednesday, June 28, 2017
  • by kartik-v
  • Repository
  • 12 Watchers
  • 62 Stars
  • 353,918 Installations
  • PHP
  • 59 Dependents
  • 0 Suggesters
  • 54 Forks
  • 26 Open issues
  • 20 Versions
  • 8 % Grown

The README.md

Krajee Logo
yii2-editable
Donate       kartikv

[![Latest Stable Version](https://poser.pugx.org/kartik-v/yii2-editable/v/stable)](https://packagist.org/packages/kartik-v/yii2-editable) [![Unstable Version](https://poser.pugx.org/kartik-v/yii2-krajee-base/v/unstable)](https://packagist.org/packages/kartik-v/yii2-editable) [![License](https://poser.pugx.org/kartik-v/yii2-editable/license)](https://packagist.org/packages/kartik-v/yii2-editable) [![Total Downloads](https://poser.pugx.org/kartik-v/yii2-editable/downloads)](https://packagist.org/packages/kartik-v/yii2-editable) [![Monthly Downloads](https://poser.pugx.org/kartik-v/yii2-editable/d/monthly)](https://packagist.org/packages/kartik-v/yii2-editable) [![Daily Downloads](https://poser.pugx.org/kartik-v/yii2-editable/d/daily)](https://packagist.org/packages/kartik-v/yii2-editable)

Easily set any displayed content as editable in Yii Framework 2.0. This is an enhanced editable widget for Yii 2.0 that allows easy editing of displayed data, using inputs, widgets and more with numerous configuration possibilities. The extension uses the enhanced yii2-popover-x extension as a popover modal for editing. With release v1.7.3, this extension also allows you to render the editable content inline and offers advanced inline templates for configuration. This extension does not use any external jQuery plugin like X-Editable, instead it uses its own lean and extensible jQuery editable plugin - that elaborately reuses functionality available within Yii Framework 2.0., (*1)

Refer the CHANGE LOG for latest release details., (*2)

Features

  1. Set any readable markup on your view, DetailView, or GridView to be editable. Refer the EditableColumn details in kartik\grid\GridView for using an editable column in your grid.
  2. Provides two display formats for setting up your editable content .
    • Link: Convert the editable content as a clickable link for popover.
    • Button: Do not convert the editable content to a link, but rather display a button beside it for editing content.
  3. Ability to render the content as a POPOVER or INLINE.
  4. Advanced configurable inline templates for rendering complex content.
  5. Uses Yii 2.0 ActiveForm for editing content. Hence all features of Yii ActiveForm, including model validation rules are available.
  6. For editing the content, you can configure it to use any of the HTML inputs, or widgets available from kartik-v/yii2-widgets or other input widgets from https://github.com/kartik-v. In addition, you can also use HTML 5 inputs or any custom input widget to edit your content.
  7. Entirely control the way the form content is displayed in the popover. By default, the widget displays the input to be edited. In addition, you can place more form fields or markup before and after this default input.
  8. Uses AJAX based form submission to process quick editing of data and provide a seamless user experience.
  9. Uses advanced features of the yii2-popover-x extension, to control display formats for your editable popover form. This uses the enhanced bootstrap-popover-x jQuery plugin by Krajee.
  10. Easily extend the default editable field by adding more form fields for editing before or after the generated editable input.
  11. Configure your own display value irrespective of the value stored internally.
  12. Configurable css styles and labels for rendering editable content according to your application or theme.
  13. Ability to render and reinitialize automatically the widget via Pjax.

Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json., (*3)

Demo

You can see detailed documentation and examples on usage of the extension., (*4)

Installation

The preferred way to install this extension is through composer., (*5)

Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json., (*6)

Either run, (*7)

$ php composer.phar require kartik-v/yii2-editable "@dev"

or add, (*8)

"kartik-v/yii2-editable": "@dev"

to the require section of your composer.json file., (*9)

Usage

Editable

use kartik\editable\Editable;
echo Editable::widget([
    'model' => $model, 
    'attribute' => 'rating',
    'type' => 'primary',
    'size'=> 'lg',
    'inputType' => Editable::INPUT_RATING,
    'editableValueOptions' => ['class' => 'text-success h3']
]);

License

yii2-editable is released under the BSD-3-Clause License. See the bundled LICENSE.md for details., (*10)

The Versions

28/06 2017

dev-master

9999999-dev https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

28/06 2017

v1.7.6

1.7.6.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

08/01 2017

v1.7.5

1.7.5.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

27/12 2015

v1.7.4

1.7.4.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

01/07 2015

v1.7.3

1.7.3.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD-3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

29/03 2015

v1.7.2

1.7.2.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

13/02 2015

v1.7.1

1.7.1.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

12/01 2015

v1.7.0

1.7.0.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

22/11 2014

1.6.0.x-dev

1.6.0.9999999-dev https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

22/11 2014

v1.6.0

1.6.0.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

30/10 2014

1.4.0.x-dev

1.4.0.9999999-dev https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

30/10 2014

v1.4.0

1.4.0.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

05/10 2014

1.3.0.x-dev

1.3.0.9999999-dev https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

05/10 2014

v1.3.0

1.3.0.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

26/08 2014

1.2.0.x-dev

1.2.0.9999999-dev https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

26/08 2014

v1.2.0

1.2.0.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

26/08 2014

1.1.0.x-dev

1.1.0.9999999-dev https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

26/08 2014

v1.1.0

1.1.0.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

31/07 2014

1.0.0.x-dev

1.0.0.9999999-dev https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x

31/07 2014

v1.0.0

1.0.0.0 https://github.com/kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

  Sources   Download

BSD 3-Clause

The Requires

 

jquery bootstrap widget input editable popover popover-x