phpwine/wineaccordion

Component for PHPWine v2.5.0

v1.2.3 2023-12-05 13:08 UTC

This package is auto-updated.

Last update: 2024-09-06 22:21:54 UTC


README

WineAccordion a collection snippet for PHPWine v2.2.0 (these features are just added safe to migrate)

composer require phpwine/wineaccordion
  /**
   * --------------------------------------------------------------------------------------------
   * @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 */