🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

rails_tooltip

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails_tooltip

0.0.1
Rubygems
Version published
Maintainers
1
Created
Source

#RailsTooltip Allows an easy implementation of javascript tooltip in rails. for demo visit

Installation

./script/plugin install git://github.com/sandipransing/rails_tooltip.git

rake rails_tooltip:install   #Copy tooltip assets from plugin to app root

Usage

1. Add following line to controller that uses tooltip

uses_tooltip

2. In layout head add following lines

<%= rails_tooltip_stuff_if_used %>

3. Inside layout body add follwing div

<div id="demotip">&nbsp;</div>

4. Add title attribute to the node where tooltip to be displayed

<%= link_to 'Blog', 'http://funonarils.com', :title => "A Ruby On Rails Blog"%>
<%= link_to 'Tooltip', 'http://flowplayer.org/tools/demos/tooltip/index.htm', :title => "Visit to see demo of tooltip"%>

5. To Initialize tooltip add following line at the bottom of view

<%= tooltip_init_if_used( 'daily_statistics', 'a' ) %>

Here daily_statistics is the id of container holding a tags i.e. links

6. To initiate tooltip for some other html tags like

<label title="This is label tooltip">Label</label>
<%= tooltip_init_if_used( 'daily_statistics', 'label' ) %>

TDOO:Example

Contributors

[Sandip Ransing](http://funonrails.com/about,"Sandip Ransing"), [Josh Software Private Limited](http://joshsoftware.com,"Josh Software")

If you wanted to do any changes in the plugin, do fork repository. Please, Feel free to add your name in contributors list.

any sugestions? san2821 at gmail.com or sandip at joshsoftware.com released under the MIT license

Copyright (c) 2010 [Sandip Ransing], released under the MIT license

FAQs

Package last updated on 07 Jan 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts