Reputation: 65870
I'm using xeditable angular directive.Could you tell me how to enable the edit mode by default ? I mean without clicking the Edit
button.Thanks in advance.
I don't need the Edit
button as shown below.
<!-- buttons -->
<div class="btn-edit">
<button type="button" class="btn btn-default" ng-show="!tableform.$visible" ng-click="tableform.$show()">
edit
</button>
</div>
Upvotes: 1
Views: 1434
Reputation: 457
http://jsfiddle.net/NfPcH/9123/
added ng-init="tableform.$show()"
on form
2nd Solution :
shown bool - Whether form initially rendered in shown state.
<form editable-form name="tableform" shown="true">
Upvotes: 2