Added new field to set the direction of tooltip.