本文整理匯總了PHP中BsHtml::buttonDropdown方法的典型用法代碼示例。如果您正苦於以下問題:PHP BsHtml::buttonDropdown方法的具體用法?PHP BsHtml::buttonDropdown怎麽用?PHP BsHtml::buttonDropdown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BsHtml
的用法示例。
在下文中一共展示了BsHtml::buttonDropdown方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: renderButtons
public function renderButtons($data, $row)
{
echo BsHtml::buttonDropdown('', array(array('label' => 'Editar', 'url' => array('update', 'id' => $data->pre_id)), array('label' => 'Eliminar', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $data->pre_id), 'confirm' => 'Esta seguro de borrar este item?'))), array('split' => false, 'size' => BsHtml::BUTTON_SIZE_SMALL, 'color' => BsHtml::BUTTON_COLOR_PRIMARY, 'icon' => BsHtml::GLYPHICON_COG));
}
示例2: renderButtons
public function renderButtons($data)
{
echo BsHtml::buttonDropdown('', array(array('label' => 'Editar', 'url' => array('update', 'id' => $data->eva_id), 'visible' => Usuario::model()->findByPk(Yii::app()->user->id)->usu_rol != "view"), array('label' => 'Eliminar', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $data->eva_id), 'confirm' => 'Esta seguro de borrar este item?'), 'visible' => Usuario::model()->findByPk(Yii::app()->user->id)->usu_rol != "view"), array('label' => 'Infome en PDF', 'url' => '', 'onclick' => "window.open(href='pdf?id={$data->eva_id}')")), array('split' => false, 'size' => BsHtml::BUTTON_SIZE_SMALL, 'color' => BsHtml::BUTTON_COLOR_PRIMARY, 'icon' => BsHtml::GLYPHICON_COG));
}
示例3: array
<?php
/* @var $this Controller */
$this->beginContent('//layouts/main');
?>
<div id="content">
<?php
if (!empty($this->menu)) {
echo BsHtml::buttonDropdown('Opciones', $this->menu, array('size' => BsHtml::BUTTON_SIZE_SMALL, 'color' => BsHtml::BUTTON_COLOR_PRIMARY));
}
?>
<?php
echo $content;
?>
</div><!-- content -->
<?php
$this->endContent();