Smart-Table icon indicating copy to clipboard operation
Smart-Table copied to clipboard

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

Open dmlgncn opened this issue 7 years ago • 1 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>

dmlgncn avatar Mar 16 '18 08:03 dmlgncn

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

dmlgncn avatar Mar 16 '18 11:03 dmlgncn