I am a big fan of all of your work, and I was using bootstrap with LESS the other day, and realized that maybe it would be a good thing to maybe have the call to register() be configurable to either call only js or only css, as since I was using LESS I didn’t need to re-register the css.
register is not the only method available, there is also registerCoreCss, registerResponsiveCss, registerAllCss, registerCoreScripts, registerTooltipAndPopover and registerAllScripts. Take your pick (I usually only call registerAllScripts).
First of all, thank you so much for providing the new version of Yii-Bootstrap, which looks very nice IMHO.
I have been replacing old Bootstrap components in my application with Yiistrap, but there are some questions that I would like to ask:
When using textFieldControlGroup for required field, I didn’t see ‘’ mark (asterisk) beside textfield label. How do you add that '’ mark? I tried to use normal textFieldRow, but got an error: ‘TbActiveForm and its behaviors do not have a method or closure named “textFieldRow”.’
I couldn’t find TbDetailView and Captcha textfield in Yiistrap. Have they been available now? Or do you intend to remove them in this new version?
In TbGridView sample page, the type for TbGridView with Hover style is TbHtml::GRID_HOVER. I guess that should be TbHtml::GRID_TYPE_HOVER?
After replacing old TbGridView, I found the new grid looked a bit strange (please see the attached picture). Sort arrows (which should only be displayed in one column header) appear in every column. Also, the summary text is displayed below grid. The code I use:
In Yiistrap we use activeLabel instead of activeLabelEx at least for now because Bootstrap itself includes no styles for the required asterix. I guess we could make this configurable if there is a big demand for it.
Neither of those are a part of Yiistrap, TbDetailView is included in Yiiwheels but it’s still under development. As for the captcha, you can wrap it yourself, take a look at TbHtml::customControlGroup and TbHtml::customActiveControlGroup.
Great! Appreciate your quick fix. The grid’s sort arrow only appears in 1 column now, but I saw 2 possible issues there:
When column is sorted in ascending order, the arrow image (caret) that appears is reverse triangle, whereas normal CGridView uses triangle for ascending sort (please see the attached picture). I remember similar issue in Yii-Bootstrap.
Summary text of TbGridView (‘Displaying … of … results’ text) always appears on the bottom (not exactly on the right side of grid, but near the center). I tried to set template property:
The sort arrow looks nice now. However, the summary text is still displayed at the bottom of grid (as shown in the attached picture). Did you really intend to set it as the default setting of TbGridView?
I’m developing a new Yii application and I decided to use Yiistrap + Yiiwheels. In the past I used both Yii Bootstrap and YiiBooster and I was satisfied with them.
To be honest I preferred the way those were working (simpler API for me, the method names were better IMO) but if I understand it correctly Yiistrap is going to be faster and more lightweight.
As Yiiwheels doesn’t have a topic here let me ask you whether you know any release date of it? I want to use the fileupload widget included there but it has many errors at the moment.
About Yiistrap, do I understand it correctly that when Bootstrap 3 will be released you’re going to release a new extension for it? So if I start using Yiistrap now and if Bootstrap 3 is released next week then will I have to rewrite my code to use that?