yii bootstrap (yiistrap) 的範例頁

舉報 發佈者:tech-1
熱度0票  瀏覽2117次 【共0條評論】【我要評論


Backup
:

Single button group

  1. <?php
  2. echo TbHtml::buttonGroup(array(
  3. array('label' => 'Left'),
  4. array('label' => 'Middle'),
  5. array('label' => 'Right'),
  6. )); ?>

Multiple button groups

  1. <?php echo TbHtml::buttonToolbar(array(
  2. array('items' => array(
  3. array('label' => '1'),
  4. array('label' => '2'),
  5. array('label' => '3'),
  6. array('label' => '4'),
  7. )),
  8. array('items' => array(
  9. array('label' => '5'),
  10. array('label' => '6'),
  11. array('label' => '7'),
  12. )),
  13. array('items' => array(
  14. array('label' => '8'),
  15. )),
  16. )); ?>

Vertical button groups

  1. <?php echo TbHtml::buttonGroup(array(
  2. array('icon' => 'align-left'),
  3. array('icon' => 'align-center'),
  4. array('icon' => 'align-right'),
  5. array('icon' => 'align-justify'),
  6. ), array('vertical' => true)); ?>

Checkbox

  1. <?php
  2. echo TbHtml::buttonGroup(array(
  3. array('label' => 'Left'),
  4. array('label' => 'Middle'),
  5. array('label' => 'Right'),
  6. ), array('toggle' => TbHtml::BUTTON_TOGGLE_CHECKBOX, 'color' => TbHtml::BUTTON_COLOR_PRIMARY)); ?>

Radio

  1. <?php
  2. echo TbHtml::buttonGroup(array(
  3. array('label' => 'Left'),
  4. array('label' => 'Middle'),
  5. array('label' => 'Right'),
  6. ), array('toggle' => TbHtml::BUTTON_TOGGLE_RADIO, 'color' => TbHtml::BUTTON_COLOR_PRIMARY)); ?>
  1. <?php echo TbHtml::buttonDropdown('Action', array(




上一篇 下一篇
來許願池許個願~願望都成真
查看全部回復【已有0位網友發表了看法】