Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't understand data-toggle part
Message
De
29/09/2017 03:39:59
 
 
Information générale
Forum:
Bootstrap
Catégorie:
Boutons
Divers
Thread ID:
01654643
Message ID:
01654664
Vues:
48
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Can you please explain what data-toggle means in this markup
>
>
><button class="btn" ng-click="loadAceEditorFile(currentLayout)" ng-hide="currentLayout.layoutTypes.isFrx" 
>                                data-toggle="tooltip"
>                                title="@Messages.loadlocalfile">
>                            <i class="fa fa-file fa-2x"></i>
>                        </button>
>                        <button class="btn" ng-click="saveAceEditorFile(currentLayout, editorLayout)" ng-hide="currentLayout.layoutTypes.isFrx" 
>                                data-toggle="tooltip"
>                                title="@Messages.saveToLocalFile">
>                            <i class="fa fa-save fa-2x"></i>
>                        </button>
>
>There is no tooltip mentioned anywhere else in the page. What does this line for the button mean?
>
>Thanks in advance.

Standard attributes for adding a tooltop which shows when hovering over the button. 'title' is the tooltip text. But it would need to be wired up in code.

Example here : https://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=tooltips-placement-via-javascript
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform