Separar datos inicio
This commit is contained in:
@ -71,6 +71,8 @@
|
||||
)
|
||||
).append(
|
||||
$('<td></td>').append(unidad)
|
||||
).append(
|
||||
$('<td></td>').append(this.unidad.descripcion.padStart(4, '0'))
|
||||
).append(
|
||||
$('<td></td>').append(propietario)
|
||||
).append(
|
||||
@ -160,7 +162,23 @@
|
||||
table.append(thead).append(tbody)
|
||||
parent.append(table)
|
||||
|
||||
this.table = new DataTable(table)
|
||||
this.table = new DataTable(table, {
|
||||
order: [
|
||||
[0, 'asc'],
|
||||
[2, 'asc']
|
||||
],
|
||||
columnDefs: [
|
||||
{
|
||||
target: 2,
|
||||
visible: false,
|
||||
searchable: false
|
||||
},
|
||||
{
|
||||
target: 1,
|
||||
orderData: [2]
|
||||
}
|
||||
]
|
||||
})
|
||||
},
|
||||
head: () => {
|
||||
return $('<thead></thead>').append(
|
||||
@ -168,6 +186,8 @@
|
||||
$('<th></th>').html('Proyecto')
|
||||
).append(
|
||||
$('<th></th>').html('Unidad')
|
||||
).append(
|
||||
$('<th></th>').html('Unidad [Sort]')
|
||||
).append(
|
||||
$('<th></th>').html('Propietario')
|
||||
).append(
|
||||
|
Reference in New Issue
Block a user