通过api绑定angularjs中的下拉列表并在excel表中导出相同的内容

时间:2017-06-26 08:57:20

标签: html angularjs excel alasql

以下是plunker链接 plunker



<div ng-app>
  <div ng-controller="myCtrl">
    <button ng-click="exportData()">Export</button>
    <br />
    <div id="exportable">
      <label class="control-label">Color</label>
      <select name="color" ng-model="inv.ColorId" id="color" required class="form-control" data-placeholder="Select the Color">
        <option value="" disabled selected>Select the color
        </option>
        <option value={{color.Id}} ng-repeat="color in ColorList | orderBy:'ColorName'">
          {{color.ColorName}}
        </option>
      </select>
      <table width="100%">
        <thead>
          <tr>
            <th>Name</th>
            <th>Email</th>
            <th>DoB</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="item in items">
            <td>{{item.name}}</td>
            <td>{{item.email}}</td>
            <td>{{item.dob | date:'MM/dd/yy'}}</td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
&#13;
&#13;
&#13;

我将工作api绑定为将值绑定到下拉列表,但是没有获得导出的Excel工作表中的下拉列表。对此有何帮助?

0 个答案:

没有答案