-
Notifications
You must be signed in to change notification settings - Fork 0
reddyonrails/tooltipclass.js
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Description: This code is to tooltip drop down option when mouse over. TooltipClass uses json data source . If this datasource is empty will fetch from ajax url passed from source list url. You can set a template for each tooltip for drop down box. sample source params to select particular select box. Usage: var dataSourceList = { 'portfolio': { 'targetElement': '#analysisjob_portfolio_id', 'url': '/portfolios', 'sourceName': 'portfolio', 'primaryKey': 'portfolio.PortfolioId', 'jasonData': {}, 'template': "" + "<%= item.Name%>" + "<br/>" + "<i><%= item.Description%></i>" + "<br/>" + "" } } targetElement : select box id url: ajax url to fetch data sourceName: json root primaryKey: key with which we search for json data for each option template: you can define tooltip structure loadSource and call tooltipify function like this : var source = dataSourceList.portfolio var test = TooltipClass.initialize(source); test.toolTipfy(); Requirements: http://twitter.github.com/bootstrap/javascript.html (tooltip,popover) jquery underscore.js tested in firefox
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published