Sampath
Sampath

Reputation: 65870

xeditable form need to be enabled Edit mode by default

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.

JsFiddle

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

Answers (1)

Amit
Amit

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

Related Questions