Download the PHP package hiddenpathz/yii2-quick-edit-accordion without Composer
On this page you can find all versions of the php package hiddenpathz/yii2-quick-edit-accordion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hiddenpathz/yii2-quick-edit-accordion
More information about hiddenpathz/yii2-quick-edit-accordion
Files in hiddenpathz/yii2-quick-edit-accordion
Package yii2-quick-edit-accordion
Short Description An asynchronous widget for quick attribute editing for Yii2
License MIT
Informations about the package yii2-quick-edit-accordion
QuickEditAccordion Widget
Description
QuickEditAccordion is a Yii2 widget designed to display data in an accordion layout with inline editing capabilities. It supports both table and list views and uses AJAX for asynchronous data updates.
Installation
To install the QuickEditAccordion widget, add it to your Yii2 project by including it in your composer.json file or cloning the repository into your project directory.
Configuration
The widget provides several customizable properties:
type: Display type ('table'or'list'). Default is'table'.action: URL to which form data will be sent for saving.items: Array of items to be displayed in the accordion.- Additional options for customizing appearance and behavior:
options,accordionOptions,listStyle,labelStyle,valueStyle.
Example Usage
JavaScript Functionality
The widget includes JavaScript code to enable inline editing functionality. Clicking an element marked with the .editable class turns it into a text field, allowing the user to modify its value. The changes are saved asynchronously via AJAX.
Example of a Controller to Handle the AJAX Request
All versions of yii2-quick-edit-accordion with dependencies
yiisoft/yii2 Version ~2.0.14
yiisoft/yii2-bootstrap Version ~2.0.0 || ~2.1.0