Add ability to open menu upwards

Being able to open the menu upwards is useful for buttons in footer areas; this adds a direction property to allow this to be controlled