Skip to content

Commit 708ba06

Browse files
committed
Readme update
1 parent ec91a0e commit 708ba06

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,35 @@ Initialize the jQuery SmartTab
143143
That's it!
144144
Please see the [documentation](http://techlaboratory.net/jquery-smarttab#documentation) for more details on implementation and usage.
145145

146+
##### All options
147+
```JavaScript
148+
// SmartTab initialize
149+
$('#smarttab').smartTab({
150+
selected: 0, // Initial selected tab, 0 = first tab
151+
theme: 'default', // theme for the tab, related css need to include for other than default theme
152+
orientation: 'horizontal', // Nav menu orientation. horizontal/vertical
153+
justified: true, // Nav menu justification. true/false
154+
autoAdjustHeight: true, // Automatically adjust content height
155+
backButtonSupport: true, // Enable the back button support
156+
enableURLhash: true, // Enable selection of the tab based on url hash
157+
transition: {
158+
animation: 'none', // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
159+
speed: '400', // Transion animation speed
160+
easing:'' // Transition animation easing. Not supported without a jQuery easing plugin
161+
},
162+
autoProgress: { // Auto navigate tabs on interval
163+
enabled: false, // Enable/Disable Auto navigation
164+
interval: 3500, // Auto navigate Interval (used only if "autoProgress" is enabled)
165+
stopOnFocus: true, // Stop auto navigation on focus and resume on outfocus
166+
},
167+
keyboardSettings: {
168+
keyNavigation: true, // Enable/Disable keyboard navigation(left and right keys are used if enabled)
169+
keyLeft: [37], // Left key code
170+
keyRight: [39] // Right key code
171+
}
172+
});
173+
```
174+
146175
License
147176
----
148177
[MIT License](https://github.com/techlab/jquery-smarttab/blob/master/LICENSE)

0 commit comments

Comments
 (0)