ui_toggle.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!-- start: PAGE TITLE -->
  2. <section id="page-title">
  3. <div class="row">
  4. <div class="col-sm-8">
  5. <h1 class="mainTitle" translate="sidebar.nav.element.TOGGLE">{{ mainTitle }}</h1>
  6. <span class="mainDescription">A simple but useful and efficient directive to toggle a class to an element</span>
  7. </div>
  8. <div ncy-breadcrumb></div>
  9. </div>
  10. </section>
  11. <!-- end: PAGE TITLE -->
  12. <!-- start: TOGGLE EXAMPLE 1 -->
  13. <div class="container-fluid container-fullw bg-white">
  14. <div class="row">
  15. <div class="col-md-12">
  16. <h5 class="over-title margin-bottom-15">Lightbulb <span class="text-bold">Example</span></h5>
  17. <p>
  18. The element that contains the icon "lightbulb", has the directive <code>toggleable</code>, which indicates that it is ready to alternate some class.
  19. The class is specified in the <code>activeClass</code> attribute (in this example <code>text-primary</code>).
  20. </p>
  21. <p class="text-center big-icon" active-class="text-primary" id="lightbulb" toggleable>
  22. <i class="fa fa-lightbulb-o"></i>
  23. </p>
  24. <div class="btn-group btn-group-justified margin-bottom-30">
  25. <a href class="btn btn-o btn-primary" target="lightbulb" ct-toggle="toggle">
  26. Toggle
  27. </a>
  28. <a href class="btn btn-o btn-primary" target="lightbulb" ct-toggle="on">
  29. Turn On
  30. </a>
  31. <a href class="btn btn-o btn-primary" target="lightbulb" ct-toggle="off">
  32. Turn Off
  33. </a>
  34. </div>
  35. <p>Through the directive <code>ctToggle</code>, the buttons can activate, turn off, or toggle class to the target element (which is indicated by its ID)</p>
  36. </div>
  37. </div>
  38. </div>
  39. <!-- end: TOGGLE EXAMPLE 1 -->
  40. <!-- start: TOGGLE EXAMPLE 2 -->
  41. <div class="container-fluid container-fullw">
  42. <div class="row">
  43. <div class="col-md-12">
  44. <h5 class="over-title margin-bottom-15">Heart <span class="text-bold">Example</span></h5>
  45. <p class="text-center big-icon" active-class="heart-pulse" id="heart" toggleable>
  46. <i class="fa fa-heart-o"></i>
  47. </p>
  48. <div class="btn-group btn-group-justified margin-bottom-30">
  49. <a href class="btn btn-o btn-primary" target="heart" ct-toggle="toggle">
  50. Toggle
  51. </a>
  52. <a href class="btn btn-o btn-primary" target="heart" ct-toggle="on">
  53. Turn On
  54. </a>
  55. <a href class="btn btn-o btn-primary" target="heart" ct-toggle="off">
  56. Turn Off
  57. </a>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <!-- end: TOGGLE EXAMPLE 2 -->