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.
Refer the CHANGE LOG for latest release details.
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.
You can see detailed documentation and examples on usage of the extension.
The preferred way to install this extension is through composer.
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.
Either run
$ php composer.phar require kartik-v/yii2-editable "@dev"
or add
"kartik-v/yii2-editable": "@dev"
to the require
section of your composer.json
file.
use kartik\editable\Editable;
echo Editable::widget([
'model' => $model,
'attribute' => 'rating',
'type' => 'primary',
'size'=> 'lg',
'inputType' => Editable::INPUT_RATING,
'editableValueOptions' => ['class' => 'text-success h3']
]);
yii2-editable is released under the BSD-3-Clause License. See the bundled LICENSE.md
for details.
yii2-editable
Date: 29-Apr-2022
Date: 20-Nov-2021
Date: 03-Oct-2018
Date: 16-Sep-2018
src
directory.Date: 28-Jun-2017
resetDelay
to control the delay in processing callback during editable reset. closeOnBlur
that automatically closes the form on blur.animationDelay
to control fade animation delay for popover or inline element. validationDelay
to control client validation delay for active form. selectAllOnEdit
that automatically selects all text in the input on edit. Date: 08-Jan-2017
additionalData
to send additional data as key-value pairs via editable ajax form POST.pluginOptions['validationDelay']
to control the editable submission validation delay (in micro-seconds).valueOptions['class']
in link mode.Date: 27-Dec-2015
editableBeforeSubmit
that submits before ajax requestevent.preventDefault()
(applicable for most critical editable events).editable
on the critical eventsinitEditablePopover
method to initialize popover for AJAX replaced editables.encodeOutput
to encode HTML output.Date: 01-Jul-2015
en
translations.en
message translation file.showButtonLabels
to control the display of action button labels (will show the label as title on hover).icon
and label
separately.buttonsTemplate
property for rendering editable form action buttons (reset and submit).asPopover
boolean property added.Date: 29-Mar-2015
kv-editable-input
CSS for various input types and widgets.displayValueConfig
.submitOnEnter
to control save on ENTER key press.valueIfNull
.Date: 13-Feb-2015
ajaxSettings
property that can be used to merge additional ajax settings/options for editable submission.editableSubmit
: pass the editable form jquery element in addition to editable input element valueeditableSuccess
: pass ajax response data and editable form jquery element in addition to editable input element valueeditableError
: pass ajax response data editable form jquery elementin addition to editable input element value displayValueConfig
validation.Date: 12-Jan-2015
Date: 22-Nov-2014
Date: 22-Oct-2014
showAjaxErrors
included for the editable jQuery plugin.editableAjaxError
event for errors faced via ajaxDate: 04-Sep-2014
editableChange
, editableSubmit
, editableReset
, editableSuccess
, and editableError
.beforeInput
& afterInput
to be passed as callback functions.Date: 26-Aug-2014
displayValueConfig
to auto calculate display value.Date: 21-Aug-2014
Date: 27-Jul-2014
\kartik\grid\GridView
and \kartik\detail\DetailView
widgets will be (enhanced to use this extension in a very easy way.
Comments