A jQueryplugin
that sets a div or span to show connections between two sets of items.
The current version is 2.0.0 and is available
under the MIT licence.
For more detail see the documentation reference page.
Or see a minimal page that you
can use as a basis for your own investigations.
The relationships functionality can easily be added to a div or span.
It displays two sets of icons and the many-to-many relationships between them.
Hovering over an icon dims the others in that set and
highlights the items from the other set that correspond to it.
You can also remove the relationships widget if it is no longer required.
The example here shows the numbers from 1 to 4 and
categorises them as odd, even, and/or prime.
This tab highlights examples of this plugin in use "in the wild".
None as yet.
To add another example, please contact me (wood.keith{at}optusnet.com.au)
and provide the plugin name, the URL of your site, its title,
and a short description of its purpose and where/how the plugin is used.
Quick Reference
A full list of all possible settings is shown below. Note that not all would apply in all cases.
For more detail see the documentation reference page.
$(selector).relationships({
opacity: 20, // Opacity of non-matching items, percentage
set1: {}, // Details about the first set of icons
set2: {}, // Details about the second set of icons
links: [], // Links between the two sets based on indexes
description: '', // The description of the sets as a whole
onSelect: null // Callback when an icon is selected
});
$.relationships.setDefaults(settings) // Change settings for all instances
$(selector).relationships('option', settings) // Change the instance settings
$(selector).relationships('option', name, value) // Change a single instance setting
$(selector).relationships('option', name) // Retrieve an instance setting
$(selector).relationships('destroy') // Remove the relationships functionality
Usage
Include the jQuery library in the head section of your page.