使用Ng-if启用Contenteditable

时间:2016-06-14 11:05:21

标签: javascript angularjs

所以我想在用户点击按钮时在表格中启用Contenteditable。谢谢。

$<tbody context-menu="menuOptions" model="{{podelaRedova}}">    
    <tr dir-paginate="us in zdravstveniPostupci |  filter: {Postupak: nasUser} | orderBy:orderByField:reverseSort | itemsPerPage:selectedMenu" ng-dblclick="updateOsoba(us,     selectMjesto )" on-long-press="updateOsoba(us, selectMjesto )" ng-click="odaberiOsobe(us,$index)">
        <td ng-repeat="key in draggableObjects" ng-if="key.visible">
            <span ng-if="key.name!='Mjesta'" contenteditable="false">{{us[key.name]}}</span>
        </td>
    </tr>
</tbody>

<div class="col-md-4 center-block" style="position: fixed; top: 36%; left: 82%;" id="gumbicc">
    <button type="button" class="btn  btn-responsive" ng-model="button" ng-init="button = true">{{HrvatskiPrevod.jezik[OdabraniJEZIKdef].UrediTablicu}}</button>
</div>

0 个答案:

没有答案