Prado\Web\UI\WebControls\TTable::renderBeginTag PHP Method

renderBeginTag() public method

Renders the openning tag for the table control which will render table caption if present.
public renderBeginTag ( $writer )
    public function renderBeginTag($writer)
    {
        parent::renderBeginTag($writer);
        if (($caption = $this->getCaption()) !== '') {
            if (($align = $this->getCaptionAlign()) !== TTableCaptionAlign::NotSet) {
                $writer->addAttribute('align', strtolower($align));
            }
            $writer->renderBeginTag('caption');
            $writer->write($caption);
            $writer->renderEndTag();
        }
    }