-
Notifications
You must be signed in to change notification settings - Fork 470
Style
The style object allows you to assign custom classes to the main qTip element, as well as Themeroller and tip options when using the tips plugin
"String", false (Default: "")
A space separated string containing all class names which should be added to the main qTip element. There are several base styles included in the CSS file provided, including:
/* CSS2 styles */
qtip{ } /* This one is applied by default (formally the "cream" style) */
qtip-plain{ }
qtip-light{ }
qtip-dark{ }
qtip-red{ }
qtip-green{ }
qtip-blue{ }
/* CSS3+ styles */
qtip-shadow{ } /* Adds a shadows to your tooltips */
qtip-rounded{ } /* Adds a rounded corner to your tooltips */
qtip-bootstrap{ } /* Bootstrap style */
qtip-tipsy{ } /* Tipsy style */
qtip-youtube{ } /* Youtube style */
qtip-jtools{ } /* jTools tooltip style */
qtip-cluetip{ } /* ClueTip style */
qtip-tipped{ } /* Tipped style */
Create a tooltip with the included blue theme and a shadow:
$('.selector').qtip({
content: {
text: 'I\'m blue... deal with it!'
},
style: {
classes: 'qtip-blue qtip-shadow'
}
});
true, false (Default: true)
This property allows you to prevent the .qtip-default class from being applied to the main tooltip element.
- Setting this to false will cause the tooltip to have no visual styling if you haven't applied any custom classes
true, false (Default: false)
Determines whether or not the ui-widget classes of the Themeroller UI styles are applied to your tooltip
- For more information on Themeroller classes checkout their documentation
"String", Integer, false (Default: false)
This property allows you to override all applied CSS width styles for the tooltip. Can be any valid width CSS value. Please note that this does not override max/min width styles! Change those in the CSS file provided.
- Again, this does not override max/min width styles!
"String", Integer, false (Default: false)
This propery allows you to override all applied CSS height styles for the tooltip. Can be any valid width CSS value. Please note that this does not override max/min height styles! Change those in the CSS file provided.
- Again, this does not override max/min height styles!
Defines the tooltip's tip properties. See the plugin documentation for more information.