Contenu connexe
Similaire à Twitter Bootstrap (20)
Twitter Bootstrap
- 4. ©Runningnotes
Getting Started
• Go here and get the download:
• http://twitter.github.com/bootstrap/
getting-started.html
• Create a new NSF or select the one you
want to add bootstrap to
• Go to the Package Explorer view
• Window, Show Eclipse View, Package
Explorer
- 5. ©Runningnotes
Add Bootstrap Files
• Find your new NSF in Package
Explorer (or your app)
• Find the Web Content folder
• Right-click and select Import... File
System
• Select the folders (all, for now)
• Click Finish
- 9. ©Runningnotes
Tooltips
• Drag an input box onto the page
• Go to the All Properties tab
• Under basics, click the + next to attrs
• For the name, enter “data-toggle”
• For the value, enter “tooltip”
• Add an attribute with the name of “title”
and enter tooltip text for the value
- 10. ©Runningnotes
Typeahead
• Deprecated, but still a good example
• styleClass = “typeahead”
<script>
var stringval=$('.HiddenValues').val();
var names=stringval.split(",");
$('.typeahead').typeahead({source: names});
</script>