{"id":63,"date":"2020-03-08T18:35:49","date_gmt":"2020-03-08T18:35:49","guid":{"rendered":"https:\/\/demo.daext.com\/soccer-engine\/?page_id=63"},"modified":"2023-10-11T14:05:45","modified_gmt":"2023-10-11T14:05:45","slug":"players","status":"publish","type":"page","link":"https:\/\/demo.daext.com\/soccer-engine\/players\/","title":{"rendered":"Players"},"content":{"rendered":"\n<p>The <strong>Players<\/strong> block allows you to display in the front-end of the website a table with information about the players.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example 1<\/h3>\n\n\n\n<p>A generic list of players.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"players\">\n\n            \n            <div id=\"dase-paginated-table-1\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'players',\n                  filter: {'start_date_of_birth': '1900-01-01','end_date_of_birth': '2100-01-01','citizenship': '0','foot': '0','player_position_id': '0','squad_id': '0',},\n                  columns: ['player','age','citizenship','height','foot'],\n                  hiddenColumnsBreakpoint1: ['age','citizenship'],\n                  hiddenColumnsBreakpoint2: ['age','citizenship'],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-1',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n\n<h3 class=\"wp-block-heading\">Example 2<\/h3>\n\n\n\n<p>Players with Italian citizenship.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"players\">\n\n            \n            <div id=\"dase-paginated-table-2\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'players',\n                  filter: {'start_date_of_birth': '1900-01-01','end_date_of_birth': '2100-01-01','citizenship': 'it','foot': '0','player_position_id': '0','squad_id': '0',},\n                  columns: ['player','age','citizenship','height','foot'],\n                  hiddenColumnsBreakpoint1: ['height','citizenship'],\n                  hiddenColumnsBreakpoint2: ['height','citizenship'],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-2',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n\n<h3 class=\"wp-block-heading\">Example 3<\/h3>\n\n\n\n<p>Players with player position equal to &#8220;Right Winger&#8221;.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"players\">\n\n            \n            <div id=\"dase-paginated-table-3\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'players',\n                  filter: {'start_date_of_birth': '1900-01-01','end_date_of_birth': '2100-01-01','citizenship': '0','foot': '0','player_position_id': '14','squad_id': '0',},\n                  columns: ['player','age','citizenship','height','foot'],\n                  hiddenColumnsBreakpoint1: ['height','citizenship'],\n                  hiddenColumnsBreakpoint2: ['height','citizenship'],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-3',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n<div  class='av-buildercomment av-39y7-9e1d446e1ac5a55c792ec7e8cbcd1100'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Players block allows you to display in the front-end of the website a table with information about the players. Example 1 A generic list of players. Example 2 Players with Italian citizenship. Example 3 Players with player position equal to &#8220;Right Winger&#8221;.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-63","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":1,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/63\/revisions"}],"predecessor-version":[{"id":693,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/63\/revisions\/693"}],"wp:attachment":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/media?parent=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}