本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Grid::_afterToHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Grid::_afterToHtml方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Grid::_afterToHtml怎么用?PHP Mage_Adminhtml_Block_Widget_Grid::_afterToHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Grid
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Grid::_afterToHtml方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _afterToHtml
/**
* After toHtml
*
* @param string $html
* @return mixed|string
*/
protected function _afterToHtml($html)
{
$html = parent::_afterToHtml($html);
// Set a specific <tbody> id to be able to target children <tr>
$html = str_replace("<tbody>", "<tbody id='slide_grid_tbody'>", $html);
// Sortable JS template
$html .= $this->getLayout()->createBlock('core/template')->setTemplate('antoinek/slider/js.phtml')->toHtml();
return $html;
}
示例2: _afterToHtml
/**
* Processing block html after rendering.
* Add button to delete orphan points if customer has such points
*
* @param string $html
* @return string
*/
protected function _afterToHtml($html)
{
$html = parent::_afterToHtml($html);
if ($this->_customerHasOrphanPoints) {
$deleteOrhanPointsButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('enterprise_reward')->__('Delete Orphan Points'), 'onclick' => 'setLocation(\'' . $this->getDeleteOrphanPointsUrl() . '\')', 'class' => 'scalable delete'));
$html .= $deleteOrhanPointsButton->toHtml();
}
return $html;
}
示例3: _afterToHtml
protected function _afterToHtml($html)
{
return $this->_prependHtml() . parent::_afterToHtml($html) . $this->_appendHtml();
}
示例4: _afterToHtml
protected function _afterToHtml($html)
{
return parent::_afterToHtml($html);
}
示例5: _afterToHtml
protected function _afterToHtml($html)
{
$html = parent::_afterToHtml($html);
return $html;
}
示例6: _afterToHtml
protected function _afterToHtml($html)
{
$html = "<script>varienGrid.prototype.rowMouseOver = function(event){var element = Event.findElement(event, 'tr');Element.addClassName(element, 'on-mouse');element.style.cursor = 'default';}</script>" . $html;
return parent::_afterToHtml($html);
}