lorenzofox3 / Smart-Table

Code source of Smart Table module: a table/grid for Angularjs

Home Page:http://lorenzofox3.github.io/smart-table-website/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When I debug st-table safeCopy object it returns empty array.

dmlgncn opened this issue · comments

Hi all,
searching of st-table does not work. So I debugged and safeObject ( source object) is empty array . Why? my html is like that:

<table st-set-filter="customFilter" st-table="permissionsData.rows" class="table-permissions" style="height: calc(100% - 5px); min-height: 350px" ng-style="{ 'width' : permissionsData.columnWidth }">
<thead>
<tr>
<th style="min-width:150px" >Category<input st-search="Category" placeholder="search for Category" class="input-sm form-control"  /></th>			
</tr></thead>
<tbody>
	<tr ng-repeat="row in permissionsData.rows">
					<td style="min-width:150px" class="permission-row">{{row.Category}}</td>				

				</tr>
			</tbody>
		</table>

my data was filling asynchronously. So I should use st-safe-src="permissionsData.rows" ı think. After debugging I realized that