N°3648 - Feedback alpha 3.0 : finish relation edition

This commit is contained in:
acognet
2021-02-15 16:50:24 +01:00
parent bcdb6bdac8
commit c1c8fad97e
11 changed files with 244 additions and 37 deletions

View File

@@ -4,7 +4,7 @@
<input type="hidden" name="attr_{{ oUIBlock.GetRef() }}" value="">
{% set columns = oUIBlock.GetColumns() %}
<table id="{{ oUIBlock.GetId() }}" class="ibo-datatable listResults{% if oUIBlock.IsHidden() %} ibo-is-hidden{% endif %}" style="width:100%;">
<table id="{{ oUIBlock.GetId() }}" class="ibo-datatable listResults{% if oUIBlock.IsHidden() %} ibo-is-hidden{% endif %}" >
<thead>
<tr>
{% for column in columns %}

View File

@@ -1,9 +1,15 @@
$('#{{ oUIBlock.GetId() }}').DataTable({
var table{{ oUIBlock.GetId()|sanitize_identifier }}= $('#{{ oUIBlock.GetId() }}').DataTable({
language: {
emptyTable: "{{ 'UI:Message:EmptyList:UseAdd'|dict_s }}"
},
scrollX: true,
scrollCollapse: true,
paging: false,
filter: false,
search: false,
dom: "t"
});
dom: "t",
});
//table{{ oUIBlock.GetId()|sanitize_identifier }}.columns.adjust().draw();
//$(".dataTables_scrollBody thead").hide();