Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phpwine/wineaccordion
WineAccordion App since wine v2.2.0
https://github.com/phpwine/wineaccordion
accordion accordion-component
Last synced: 9 days ago
JSON representation
WineAccordion App since wine v2.2.0
- Host: GitHub
- URL: https://github.com/phpwine/wineaccordion
- Owner: PHPWine
- License: mit
- Created: 2023-11-28T11:51:12.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-06T20:35:48.000Z (12 months ago)
- Last Synced: 2024-04-07T00:53:24.589Z (7 months ago)
- Topics: accordion, accordion-component
- Language: PHP
- Homepage: https://dev-phpwine.pantheonsite.io/
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WineAccordion
WineAccordion a collection snippet for PHPWine v2.2.0 (these features are just added safe to migrate)```PHP
composer require phpwine/wineaccordion
``````PHP
/**
* --------------------------------------------------------------------------------------------
* @method accordion
* --------------------------------------------------------------------------------------------
* This method is a hook to execute the new instance of accordion
*
* $wine = new WineAccordion([
* prefix => 'wine_',
* icon => [
* 'position' => 'right', // right or Left you can also top and bottom via css flex : direction
* 'default' => '+', // default
* 'clicked' => 'X', // after clicked icon
* ],
* accordion => (array) $assoc_array
* ])
*
* $wine->accordion();
*
* Make you when you query your data from your Model to Controller it is associated array data to be able to
* iterrate the value into accordion
*
* $assoc_array: This variable is a associated of arrays of data
* ex.$datas = [
* 'title' => 'content',
* 'menu 2' => 'content 2'
*
* ]
*
* PREVIEW:
*
* HOOKS:
*
* ATTR: @method
* public function attr_prefix_awssscca() {...}
*
* VALUE: @method
* public function prefix_awssscca() {...}
*
* TOP and BOTTOM @function
* function top_prefix_awssscca() {...}
* function bottom_prefix_awssscca() {...}
*
* @Defined : execute new instance accordion
* @since: v1.0 doctrine
* @since: v2.5.0 wine */
```