Edit and create with ng2-smart-table
<p>I am trying to use <code>&lt;ng2-smart-table&gt;</code>. The issue is that I don't know how to bind the plus button (<code>addButtonContent</code>) with some create function data. Now this just opens for me anther row to insert the data. Also how can I do it for the edit button.
My code is:</p>

<pre><code>settings = {
   add: {
      addButtonContent: '&lt;i class="ion-ios-plus-outline"&gt;&lt;/i&gt;', //how to call some function to this one
      createButtonContent: '&lt;i class="ion-checkmark"&gt;&lt;/i&gt;',
      cancelButtonContent: '&lt;i class="ion-close"&gt;&lt;/i&gt;',
   },
   edit: {
      editButtonContent: '&lt;i class="ion-edit"&gt;&lt;/i&gt;',
      saveButtonContent: '&lt;i class="ion-checkmark"&gt;&lt;/i&gt;',
      cancelButtonContent: '&lt;i class="ion-close"&gt;&lt;/i&gt;',
   },
   delete: {
      deleteButtonContent: '&lt;i class="ion-trash-a"&gt;&lt;/i&gt;',
      confirmDelete: true
   },
</code></pre>

<p>and my template is:</p>

<pre class="lang-html prettyprint-override"><code>&lt;ba-card title="Basic Example" baCardClass="with-scroll"&gt;
   &lt;div class="form-group"&gt;
      &lt;input  #search type="search" class="form-control form-control-lg" placeholder="Search..."  (keyup)="onSearch(search.value)"&gt;
   &lt;/div&gt;
   &lt;ng2-smart-table [settings]="settings" [source]="source" (deleteConfirm)="onDeleteConfirm($event)"&gt;&lt;/ng2-smart-table&gt;
&lt;/ba-card&gt;
</code></pre>