Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?php
  2. $table_definition = (object) [
  3. "name" => "vendors",
  4. "access" => "read",
  5. "search_post_route" => "",
  6. "index_post_route" => "",
  7. "index_get_route" => "",
  8. "header_definition" => [],
  9. "footer_definition" => [],
  10. "column_definition" => [],
  11. ];
  12. ?>
  13. @section('content')
  14. <div class="panel-body">
  15. <zzi-results-table
  16. v-bind:results="{{ json_encode($vendors) }}"
  17. v-bind:table_definition="{{ json_encode($table_definition) }}"
  18. >
  19. </zzi-results-table>
  20. </div>
  21. @stop
  22.  
  23. @section('script')
  24. //can't get this variable to zzi-results-table
  25. js_table_definition = {
  26. "name" : "vendors",
  27. "access" : "read",
  28. "search_post_route" : "",
  29. "index_post_route" : "",
  30. "index_get_route" : "",
  31. "header_definition" : [],
  32. "footer_definition" : [],
  33. "column_definition" : [],
  34. };
  35.  
  36. @stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement