Comments (5)
Yii inserts jquery.ui as full library, maybe a solution to this problem is that you create a 'packageManager' configuration and set with scriptMap jquery.ui to false, so you can easily insert your modified version js for the combination with bootstrap.
from yiibooster.
I think that this is the only appropriate solution. Thanks.
from yiibooster.
Will close this issue as solved.
from yiibooster.
All right. And if I want to use and the possibility of JQuery.button and Boostrap fn.button?
You propose to exclude from jquery.ui scriptMap, but then I lost the possibility of other things isgolzovat jquery.ui.
I see the decision in this case may be that the presence jquery.ui. Button expanded opportunities jquery.ui.button. Or just rename function - basically, she's from outside users is not called
from yiibooster.
just change on boostrap.js 'button' to 'bbutton' and all work fine))
$.fn.bbutton = function (option) {
return this.each(function () {
var
, data = $this.data('button')
, options = typeof option == 'object' && option
if (!data) $this.data('button', (data = new Button(this, options)))
if (option == 'toggle') data.toggle()
else if (option) data.setState(option)
})
}
$.fn.bbutton.defaults = {
loadingText: 'loading...'
}
$.fn.bbutton.Constructor = Button
/* BUTTON DATA-API
-
=============== */
$(function () {
$('body').on('click.bbutton.data-api', '[data-toggle^=button]', function ( e ) {
var$btn = $ (e.target)
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
$btn.bbutton('toggle')
})
})
from yiibooster.
Related Issues (20)
- TbGridView responsive issue with tfoot tag
- Undefined class constant 'TbButton::CTX_DEFAULT'
- Bootstrap Switch is outdated HOT 1
- TbExtendedGridView 'fixedHeader' => true, is not working
- 4.0.1 TBWidget.php - mistyped variable name $context
- TbEditableField cannot set pk variable
- TbExtendedGridView Paging - Forward slashes in paging... HOT 1
- Asset folder destination must be configurable HOT 2
- Why did you write this code?It just look like a obvious bug~ HOT 1
- Do you have some plan update this project to yii2 framework? HOT 2
- Can you, please, update requirement for yii as '>=1.1.15' HOT 3
- Inclusion of jquery-ui-no-conflict.min.js is hard coded
- Uncaught TypeError: $(...).yiiGridView is not a function
- Css class for radioButtonListGroup is miss typed to checkbox-inline
- TbToggleColumn $data->primaryKey is not working
- How to get Assets url for a custom created plugin for redactor editor Yii 1.xx HOT 1
- TbRelationalColumn: getPrimaryKey($data)
- jquery.ba-bbq.js:258 Uncaught TypeError: Cannot read property 'match' of undefined
- migrate yii-booster.clevertech.biz site to github pages ?! HOT 4
- Distribuidora
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yiibooster.