| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace zin;
- require_once dirname(__DIR__) . DS . 'formrow' . DS . 'v1.php';
- require_once dirname(__DIR__) . DS . 'icon' . DS . 'v1.php';
- class formRowGroup extends formRow
- {
- /**
- * @var mixed[]
- */
- protected static $defineProps = array(
- 'title: array',
- 'items?: array'
- );
- /**
- * @var mixed[]
- */
- protected static $defineBlocks = array(
- 'prefix' => array(),
- 'suffix' => array()
- );
- public static function getPageCSS()
- {
- return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
- }
- protected function build()
- {
- return formRow
- (
- setClass('form-row-group border-b border-b-1'),
- div
- (
- $this->block('prefix'),
- setClass('row-group-title font-black px-3 py-1'),
- $this->prop('title'),
- $this->block('suffix')
- ),
- set($this->getRestProps()),
- $this->prop('items')
- );
- }
- }
|