function PanelMenuCtrl(mdPanelRef) {
    this.closeMenu = function() {
      mdPanelRef && mdPanelRef.close();
    };
  }
The request to open the panel has two arguments passed into it. The
first is a preset name passed in as a string. This will request a
cached preset and apply its configuration parameters. The second is an
object containing parameters that can only be filled through a
controller. These parameters represent configuration needs associated
with user interaction, panel position, panel animation, and other
miscellaneous needs.