Added the possibility to render append/prepend without a span wrap #433

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
2 participants
@Frostmaind
Contributor

Frostmaind commented Apr 2, 2013

Can be used like this:

Example 1

echo $form->textFieldRow($model, 'url', array(
    'appendOptions' => array('isRaw' => true), 
    'append' => $this->widget('bootstrap.widgets.TbButton', array('label' => 'Make url'), true),
));

Example 2

echo $form->textFieldRow($model, 'url', array(
    'appendOptions' => array('isRaw' => true), 
    'append' => $this->renderPartial('parts/_btn_makeurl',null,true)
));

contents of _btn_makeurl.php


<?php $this->widget('bootstrap.widgets.TbButton', array('label' => 'Make url')); ?>

booster-add2

More examples from twitter bootsrap
booster-add

@hijarian

This comment has been minimized.

Show comment Hide comment
@hijarian

hijarian Apr 7, 2013

Member
Member

hijarian commented Apr 7, 2013

@hijarian hijarian closed this Apr 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment