Forum

Accueil » Alloy UI » English

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Eric COQUELIN
How to use Bootstrap buttonGroup with AlloYUI ?
14 mai 2014 04:28
Réponse

Eric COQUELIN

Rang: Regular Member

Publications: 191

Date d'inscription: 3 novembre 2013

Publications Récentes

Hi,

I try to define a dropdown button from a JSF page. As I noticed that there are no components with Liferay Faces (there are with Primefaces - but would like to avoid them), I check on Bootstrap as it is natively supported from version 6.2

http://liferay.github.io/alloy-bootstrap/components.html#buttonDropdowns

 1<div class="btn-group">
 2            <button class="btn btn-info">Info</button>
 3            <button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
 4            <ul class="dropdown-menu">
 5                <li><a href="#">Action</a></li>
 6                <li><a href="#">Another action</a></li>
 7                <li><a href="#">Something else here</a></li>
 8                <li class="divider"></li>
 9                <li><a href="#">Separated link</a></li>
10            </ul>
11        </div>


But as javascript coming with Bootstrap is not natively included into Liferay, we should use AlloYUI. The latter proposes a toggler.
http://alloyui.com/examples/toggler/

Unfortunately, I was not able to make both of them working together. Can anyone help me?

Thanks.
Bradley Wood
RE: How to use Bootstrap buttonGroup with AlloYUI ?
18 août 2014 09:11
Réponse

Bradley Wood

Rang: New Member

Publications: 3

Date d'inscription: 29 juillet 2014

Publications Récentes

I was having the same issue
Zeno Rocha
RE: How to use Bootstrap buttonGroup with AlloYUI ?
25 août 2014 18:31
Réponse

Zeno Rocha

LIFERAY STAFF

Rang: New Member

Publications: 10

Date d'inscription: 29 juin 2012

Publications Récentes

Here it is: http://jsfiddle.net/kep567m6/6/