Search code examples
javascriptangularjsx-editable

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>

Solution

  • 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">