本文整理汇总了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>