src/FormLayout/Section/Accordion.php
public function addSection($title, $callback = null, $icon = 'dropdown')
    {
        $section = parent::addSection($title, $callback, $icon);

        return $section->add([$this->formLayout, 'form' => $this->form]);
    }
public function addSection($title, $callback = null, $icon = 'dropdown')
    {
        $section = parent::addSection($title, $callback, $icon);

        return $section->add([$this->formLayout, 'form' => $this->form]);
    }
public function addSection ( $ title , $ callback = null , $ icon = 'dropdown' ) { $ section = parent :: addSection ( $ title , $ callback , $ icon ) ; return $ section -> add ( [ $ this -> formLayout , 'form' => $ this -> form ] ) ; }
Return an accordion section with a form layout associate with a form.

@param string        $title
@param null|callable $callback
@param string        $icon

@throws \atk4\ui\Exception

@return \atk4\ui\FormLayout\Generic
Return an accordion section with a form layout associate with a form .