UI components standardization
#1
Posted 31 December 2011 - 05:30 AM
- Webapp uses Blueprint (customized).
- The framework integrates jQuery UI.
My suggestions:
Suggestion A
- Keep jQuery UI.
- Add jQuery Mobile.
- Remove Blueprint.
- Use jQuery UI and jQuery Mobile for webapp.
Suggestion B
- Move jQuery UI to an external extension (remove it from the core).
- Remove Blueprint.
- Use Bootstrap 2 http://twitter.github.com/bootstrap/ (version 2 is under development https://github.com/t...ap/tree/2.0-wip and it will have some responsive/adaptive goodness, it could be ready for the Yii 2 release) for webapp (it could also be added as a 3rd party component to the core framework, just like jQuery UI is actually part of the framework).
My personal vote is for B.
#3
Posted 31 December 2011 - 06:19 AM
#4
Posted 31 December 2011 - 07:20 AM
Bootstrap is too limiting IMO.
Makes web apps look too similar.
Foundation is more flexible.
However, what I would really like is the ability to easily make 'blueprint' applications in Yii (no, I don't mean the framework BluePrint).
I mean: custom webapps.
Then people could contribute custom starter apps, based on Bootstrap, Foundation, with extended auth, one-page jQuery UI, etc.
Starter kits?
Currently, what I do is copy the contents of yii/framework/cli/views/webapp and the webapp command to make my own custom starter app.
Because I don't want to change the same things each time I start a new app.
#5
Posted 31 December 2011 - 09:40 AM
@jacmoe: do you have a link to Foundation?
#6
Posted 31 December 2011 - 09:45 AM
qiang, on 31 December 2011 - 09:40 AM, said:
Look at my previous post
#7
Posted 31 December 2011 - 09:48 AM
http://foundation.zurb.com/
It's simply a better solution IMO.
But do take each one for a spin.
The problem with Bootstrap at the moment is that it's geared towards the same type and style of apps.
Which is internal Twitter apps.
Foundation has more built into it.
And it seems more actively maintained.
https://github.com/zurb/foundation
But just try them out.
I think you'll find that the Foundation grid is more enjoyable to use than the Bootstrap one.
Besides, I think Zurb is a cooler entity than Twitter.
They do some cool things.
#8
Posted 31 December 2011 - 10:01 AM
Take a peek at the Foundation Case Studies to see what it can do.
http://foundation.zu...ase-soapbox.php - 5 different apps.
#9
Posted 01 January 2012 - 10:18 PM
A proper solution would to move the whole thing into a adapter type interface still within the package manager so people can pick and choose what they want to use. This would give access for people to switch other libraries easier and extensions that use existing libraries could integrate better. I'm a jQuery junkie though so can't see why anyone would want to use another library!

Quote
#11
Posted 03 January 2012 - 02:18 PM
#14
Posted 10 January 2012 - 04:34 AM
By using semantics I can change the underlying grid as I like.
So plus one for that.
I am not sure if Foundation supports it out of the box, but it wouldn't be much of a problem to make a wrapper for it.
#15
Posted 10 January 2012 - 10:45 PM
but Bootstrap is great too.
#16
Posted 11 January 2012 - 08:48 AM
#17
Posted 11 January 2012 - 10:49 AM
#18
Posted 11 January 2012 - 11:30 AM
andy_s, on 11 January 2012 - 08:48 AM, said:
i agree, but since you can transform it in a cms or whatever in five minutes, it is nice to have a good style setup to work with. as you say you can keep Yii style for some modules, like backends and some forms maybe.
#19
Posted 12 January 2012 - 04:32 AM
Bootstrap already has everything that Yii needs, while Zurb Foundation would require some custom UI components for menus, breadcrumbs, forms, tables column sorting etc.
Obviously, I'm talking about Boostrap 2.x (which is WIP), as the current 1.x version is not responsive.
#20
Posted 12 January 2012 - 04:58 AM

Help
This topic is locked












