Vendroid Custom Functions

Custom functions to help build the themes
#DataDescriptionHTML TagsExample
1data-rel="tags-input"Modify input into tags<input type="text">
2data-rel="switch"Modify checkbox into switch<input type="checkbox">
3data-toggle="tooltip"Create a tooltip<any>
4data-toggle="popover"Create a popover<any>
5data-rel="prettyPhoto"Create a prettyphoto over on image<a>
6data-rel="scroll"
data-scrollheight="200"
Create vertical scroll content with specific height<div>
7data-action="click-trigger"
data-action="click-target"
Open on click modified dropdown list with tags next to it<any data-action="click-trigger"><any data-action="click-target">
8data-action="minimize"Minimize Closest Widget<any>
9data-action="refresh"Refresh Closest Widget, must edit with your own ajax code<any>
10data-action="close"Close Closest Widget<any>
11data-action="expand-all"Expand all menu in closest navbar<any>
12data-action="nav-left-medium"Toggle navbar left to medium size<any>
13data-action="nav-left-small"Toggle navbar left to small size<any>
14data-action="nav-right-medium"Toggle navbar right to medium size<any>
15data-action="nav-right-small"Toggle navbar right to small size<any>
16data-action="remove-navbar"Remove left and right navbar<any>
17data-action="remove-header"Remove Header<any>
18data-action="fullscreen"Remove left and right navbar and header<any>
19data-action="boxedtofull"Toggle Between boxed and full width<any>
19data-action="notification"
data-type="success / notify /
info / error"

data-title="Title"
data-message="Messages"
data-position="topleft / topright /
bottomleft / bottomright"
Set notification in a button<any>
20data-action="backtop"Go to Top<any>

Javascript Function Helper

#Function NameDescriptionExample
1isTouch()Determine if the device has touch capability
2isMobile()Determine your device is a mobile device
3isPhone()Determine if your device is phone device
4isTablet()Determine if your device is tablet device
5notification(position, notif_type,icon_class,notif_title,notif_text)Set Notification via script function
6scrollTo(element,offset)Scroll to element with offset