winjs / angular-winjs

Project to smooth the AngularJS/WinJS interaction
Other
126 stars 46 forks source link

AppBarCommand type flyout doesn't work #66

Closed NCC1701M closed 9 years ago

NCC1701M commented 9 years ago

To open a <win-flyout /> simply by clicking on a <win-app-bar-command /> doesn't work.

I have the following:

<win-flyout id="openProjectFlyout">
   <div>
      <label for="openProjectNumber">Project number</label>
      <input class="win-textbox" id="openProjectNumber" type="text" />
   </div>
   <button class="win-button win-button-primary" id="confirmButton" disabled>Open</button>
</win-flyout>

<win-app-bar closed-display-mode="'minimal'" placement="'top'">
   <win-app-bar-command id="openProject" icon="'openlocal'" label="Open" tooltip="Open new project" section="'primary'" type="'flyout'" flyout="select('#openProjectFlyout')"></win-app-bar-command>
</win-app-bar>

But it doesn't open the flyout when I click the command.