Shouldn’t bootstrap.widgets.BootNavbar highlight both the actual menu item currently viewed as page as well as any top level item it belongs to? See for instance twitter.github.com/bootstrap/components.html#navbar – in this particular case both “Navigation” as well as “Navbar” are selected / highlighted in the secondary menu. From what I can tell this is currently not (automatically) possible. Any chance you could fix that Chris83?
hello, i’m confused with your new documentation for new bootModal…
in the old bootModal, this code is working
<?php
echo CHtml::link('Tambah Stok', "",
array(
'style' => 'cursor: pointer; text-decoration: underline',
'onclick' => "{TambahStok(); $('#stok-form').bootModal('open');}"));
?>
<?php $this->beginWidget('ext.bootstrap.widgets.BootModal',array(
'id'=>'stok-form',
'options'=>array(
'title'=>'Tambah Stok',
'backdropClose'=>false, // close the modal when the backdrop is clicked?
'escapeClose'=>true, // close the modal when escape is pressed?
'open'=>false, // should we open the modal on initialization?
),
)); ?>
but, i have no idea how to use the "options" in the widgets such as keyboard, backdrop, autosize etc…
and i don’t know how to open bootModal in “onclick” event…
I really like bootstrap as css/javascript framework and how it nicely fits into yii with your extension.
Let me request integration of your extension with bootstrap datepicker plugin (eyecon.ro/bootstrap-datepicker), which is still missing in base bootstrap package.
Datepicker plugin is made by Stefan Petre (eyecon.ro) and free to use.
It nicely fits with your extension, and one more reason not to use jquery-ui at all when bootstrap is in use.
P.S. If you want I can send you the code for modification needed to integrate it with your extension.
I’ve now developed the remaining plugins, BootCarousel, BootProgress, BootTypeahead and BootHero. They will all be included in the upcoming 0.9.10 release. I still have some work left with the button widgets but I’m quite confident that I will be done by the end of the week.
I’ve uploaded a BETA version of Yii-Bootstrap 0.9.10 for those who’s eager to try the new widgets.
Please note that BootCrumb is now BootBreadcrumbs and BootThumbs is now BootThumbnails (this might still change before the actual release) and BootInput::captchaRow now supports captchaOptions and this will break the backwards compatibility.
Also, please leave me some feedback regarding the new widgets and the other improvements so that I know if I’m heading in the right direction.
I’m sorry for all the changes but we’re getting close to version 1.0.0 and I want it to be perfect.
PS. I’ve also uploaded a new version of my LESS extension which works nicely together with this extension. If you’re interested you can get it here:
the Javascript bootstrap-tab.js will not be loaded with your extension, although it is included. Will that be fixed with release 0.9.10 or can you provide a little bugfix?
Thanks!
I helped myself with
if (!$this->isPluginDisabled(self::PLUGIN_TAB))
$this->registerTabs();
inside the registerCorePlugins() method in Bootstrap.php
The script is automatically loaded by the BootTabbable widget when used.
With your fix the script would always be loaded, even when there is no need to load it at all. The extension only loads the necessary scripts, instead each widget makes sure that all the required scripts are loaded when they’re used.
In other words you won’t need to worry about the scripts, it’s all automatically handled by the extension itself.
<?php $this->widget('bootstrap.widgets.BootTabbed', array(
'type'=>'pills', // 'tabs' or 'pills'
'tabs'=>array(
array('label'=>'Home', 'content'=>$this->renderPartial('_customer_details', array('model'=>$model))), #### HOW TO PASS THIS?
array('label'=>'Profile', 'content'=>'Food truck fixie locavore, accusamus mcsweeney\'s marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.'),
array('label'=>'Dropdown', 'items'=>array(
array('label'=>'@fat', 'content'=>'Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney\'s organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven\'t heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.'),
array('label'=>'@mdo', 'content'=>'Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.'),
)),
),
)); ?>
how can I pass $this->renderPartial(’_customer_details’, array(‘model’=>$model)) for the content of each item?
Great work as always Chris, I started using this extention the moment you first released it:p I didnt check back on it though until a couple of days ago and man what progress you’ve made!
Lovely, now I tried to use tooltip, copied your example from the demo page but they look the same as they do without bootstrap, am I missing something? (everything else I’ve tested works like a charm)