lightTabs
A powerful responsive tabs widget

Usage


lightTabs is the easiest way to put a simple and responsive tabs widget in your website.
When there are more items then visible, arrows will be shown and let you navigate!
  1. Import JS and CSS in your page
  2. Inject lightTabs in your app:
    var app = angular.module("myApp", ["lightTabs"]);
  3. Put this simple snippet where you want the widget to appear:
    
                                <light-tabs>
                                <light-tabs-pane light-tabs-title="TAB 1 TITLE">
                                </light-tabs-pane>
                                </light-tabs>
                            

Options



Options for <light-tabs>

Option Description Type Default value
selected-pane-index Scope-binded value: this will contain the current tab index: if you change this value from your controller, the directive will select the new tab if not disabled. Number null
visible-items-desktop Number of elements to display on desktop (width > 992px) Number 3
visible-items-tablet Number of elements to display on tablet (768px <= width >= 992px) Number 3
visible-items-mobile Number of elements to display on mobile (width < 768px) Number 1
show-indicators If "true" one dot per tab will be showed over the tabs. String false
force-visible By default, light-tabs will control if visible items is higher than the number of tabs. if force-visible is "true", the control will be skipped and you could achieve to display tabs as they are in the second demo below. Boolean true

Options for <light-tabs-pane>

Option Description Type Default value
light-tabs-title Optional title: this will be put in the tab toggle string empty
pane-disabled Optional scope-binded value: this will set the tab active or disabled boleean false

Demo


DEFAULT WITH INDICATORS

TAB 1 CONTENT

TAB 2 CONTENT

TAB 3 CONTENT

TAB 4 CONTENT

TAB 5 CONTENT

FORCED

TAB 1 CONTENT

TAB 2 CONTENT

DECORATORS

TAB 1 CONTENT

TAB 2 CONTENT

TAB 3 CONTENT

TAB 4 CONTENT

TAB 5 CONTENT

TAB 6 CONTENT

TAB 7 CONTENT

TAB 8 CONTENT

TAB 9 CONTENT

TAB 10 CONTENT

TAB 11 CONTENT

About


lightTabs is a widget to easily add a Tabs Widget in your website!