TbHtml::modalFooter PHP Method

modalFooter() public static method

Generates a modal footer.
public static modalFooter ( string $content, array $htmlOptions = [] ) : string
$content string the footer content.
$htmlOptions array additional HTML attributes.
return string the generated footer.
    public static function modalFooter($content, $htmlOptions = array())
    {
        self::addCssClass('modal-footer', $htmlOptions);
        return self::tag('div', $htmlOptions, $content);
    }

Usage Example

Example #1
0
 /**
  * Widget's run method
  */
 public function run()
 {
     if (!isset($this->content)) {
         $this->content = ob_get_clean();
     }
     echo TbHtml::modalBody($this->content);
     echo TbHtml::modalFooter($this->footer);
     echo '</div>' . PHP_EOL;
     echo '</div>' . PHP_EOL;
     echo '</div>' . PHP_EOL;
     $this->renderButton();
     $this->registerClientScript();
 }
TbHtml