Prado\Web\UI\WebControls\TTableCell::addAttributesToRender PHP Method

addAttributesToRender() protected method

Adds attributes to renderer.
protected addAttributesToRender ( $writer )
    protected function addAttributesToRender($writer)
    {
        parent::addAttributesToRender($writer);
        if (($colspan = $this->getColumnSpan()) > 0) {
            $writer->addAttribute('colspan', "{$colspan}");
        }
        if (($rowspan = $this->getRowSpan()) > 0) {
            $writer->addAttribute('rowspan', "{$rowspan}");
        }
    }

Usage Example

Example #1
0
 /**
  * Adds attributes to renderer.
  * @param THtmlWriter the renderer
  */
 protected function addAttributesToRender($writer)
 {
     parent::addAttributesToRender($writer);
     if (($scope = $this->getScope()) !== TTableHeaderScope::NotSet) {
         $writer->addAttribute('scope', $scope === TTableHeaderScope::Row ? 'row' : 'col');
     }
     if (($text = $this->getAbbreviatedText()) !== '') {
         $writer->addAttribute('abbr', $text);
     }
     if (($text = $this->getCategoryText()) !== '') {
         $writer->addAttribute('axis', $text);
     }
 }
All Usage Examples Of Prado\Web\UI\WebControls\TTableCell::addAttributesToRender