2020-09-28 01:25:07 +02:00
< ? php
echo $this -> element ( 'genericElements/IndexTable/index_table' , [
'data' => [
'data' => $data ,
'top_bar' => [
'children' => [
[
'type' => 'search' ,
2021-11-10 15:31:09 +01:00
'button' => __ ( 'Search' ),
2020-09-28 01:25:07 +02:00
'placeholder' => __ ( 'Enter value to search' ),
'data' => '' ,
'searchKey' => 'value'
]
]
],
'fields' => [
[
'name' => __ ( 'Field' ),
'sort' => 'field' ,
'data_path' => 'field' ,
],
[
'name' => __ ( 'Type' ),
'sort' => 'type' ,
'data_path' => 'type' ,
],
[
'name' => __ ( 'Multiple values' ),
'sort' => 'multiple' ,
'data_path' => 'multiple' ,
'field' => 'textarea'
],
2022-11-14 09:04:35 +01:00
[
'name' => __ ( 'Sane defaults' ),
'data_path' => 'sane_default'
],
[
'name' => __ ( 'Values List' ),
'data_path' => 'values_list'
],
2020-09-28 01:25:07 +02:00
[
'name' => __ ( 'Validation regex' ),
'sort' => 'regex' ,
'data_path' => 'regex'
2021-11-04 08:10:32 +01:00
],
[
'name' => __ ( 'Field Usage' ),
'sort' => 'counter' ,
'data_path' => 'counter' ,
],
2020-09-28 01:25:07 +02:00
],
'title' => __ ( 'Meta Template Fields' ),
'description' => __ ( 'The various fields that the given template contans. When a meta template is enabled, the fields are automatically appended to the appropriate object.' ),
'pull' => 'right'
]
]);
?>