This example shows how to use the AIM modules with other dijits to get a resizable, movable, floating buddy list. This page also shows how you can configure the HoverCard that shows up as you hover over buddy names.
The AIM modules are do not have the logic to auto-detect the best HoverCard placement. The following are attributes you can use on the dojoType="aim.ImPanel" div, or you can change the values dynamically by accessing the HoverCardManager on the BuddyList widget. The default options in the form are the ones that are the default configuration.
This page also configures an extra action to show in the HoverCard. It adds an "email" icon to the HoverCard. For details on how to add actions to the HoverCard, see the source of this page and look for onExampleActionClick references.
Example usage (note how in the JavaScript example, hoverCardOrient is an object and hoverCardPadding is an array):
<!-- Markup example -->
<div id="myImWidget"
dojoType="aim.ImPanel"
hoverCardOrient="'TL':'BL'"
hoverCardPointerSide="top"
hoverCardPointer="hidden"
hoverCardPadding="0, 0">
</div>
//Modifying the values in JavaScript after widgets are instantiated.
var hoverCardManager = dijit.byId("myImWidget").buddyListWidget.hoverCardManager;
hoverCardManager.hoverCardOrient = { 'TL':'BL' };
hoverCardManager.hoverCardPointerSide = "top";
hoverCardManager.hoverCardPointer = "hidden";
hoverCardManager.hoverCardPadding = [0, 0];