本文整理匯總了PHP中TbHtml::closeButton方法的典型用法代碼示例。如果您正苦於以下問題:PHP TbHtml::closeButton方法的具體用法?PHP TbHtml::closeButton怎麽用?PHP TbHtml::closeButton使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TbHtml
的用法示例。
在下文中一共展示了TbHtml::closeButton方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: renderModalHeader
/**
* Renders the header HTML markup of the modal
*/
public function renderModalHeader()
{
echo '<div class="modal-header">' . PHP_EOL;
if ($this->closeText) {
echo TbHtml::closeButton($this->closeText, array('data-dismiss' => 'modal'));
}
echo TbHtml::tag('h3', array(), $this->header);
echo '</div>' . PHP_EOL;
}
示例2: uniqid
'color' => TbHtml::BUTTON_COLOR_INFO,
'size' => TbHtml::BUTTON_SIZE_MINI,
'data-toggle' => 'modal',
'data-target' => '#modalidad',
'style' => '',
'id' => 'open-modal-' . uniqid(),
)
);
echo "</div>";
// mostrar botones si es update
if ($accion=="update"){
echo "<div class='control-group'>";
echo "<div class='controls'>";
echo TbHtml::checkBox('borrar'.$modalidades[$i], false, array('label' => 'Eliminar archivo'));
echo TbHtml::button('Subir PDF', array('size' => TbHtml::BUTTON_SIZE_MINI, 'class' => 'subirpdf'));
echo "</div>";
echo "</div>";
echo "<div class='well well-small oculto subepdf'>";
echo TbHtml::closeButton();
echo $form->FileFieldControlGroup($model, $modalidades[$i]);
echo "</div>";
}
}
示例3: testCloseButton
public function testCloseButton()
{
$I = $this->codeGuy;
$html = TbHtml::closeButton('Close', array('dismiss' => TbHtml::CLOSE_DISMISS_MODAL, 'class' => 'button'));
$button = $I->createNode($html, 'button[type=button].close');
$I->seeNodeCssClass($button, 'button');
$I->seeNodeAttribute($button, 'data-dismiss', 'modal');
$I->seeNodeText($button, 'Close');
}
示例4: array
<?php echo TbHtml::well('Look, I\'m in a well!', array('size' => TbHtml::WELL_SIZE_LARGE)); ?></pre>
<h4>Small</h4>
<div class="bs-docs-example">
<?php
echo TbHtml::well('Look, I\'m in a well!', array('size' => TbHtml::WELL_SIZE_SMALL));
?>
</div>
<pre class="prettyprint linenums">
<?php echo TbHtml::well('Look, I\'m in a well!', array('size' => TbHtml::WELL_SIZE_SMALL)); ?></pre>
<h2>Close icon</h2>
<div class="bs-docs-example">
<?php
echo TbHtml::closeButton(TbHtml::CLOSE_TEXT, array('style' => 'float: none'));
?>
</div>
<pre class="prettyprint linenums">
<?php echo TbHtml::closeButton(); ?></pre>
<pre class="prettyprint linenums">
<?php echo TbHtml::closeLink(); ?></pre>
</section>
</div>
</div>
</div>