-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration-table.js
55 lines (49 loc) · 1.01 KB
/
configuration-table.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { paginationFn } from "./api";
const headerConfig = [
{
text:'Materia',
columnNameDB:'nombreMateria',
idHeader:'nameAssignature',
attributeToPrint:'nombreMateria',
sortable:true,
sortThis:true
},
{ text:
'Salon',
columnNameDB: 'salon',
idHeader: 'assignatureRoom',
attributeToPrint: 'salon',
sortable: true
}
];
const sort = {
sqlSort:true,
sortASC:true
}
const attributesResponse = {
pages:'pages',
actualPage:'actualPage',
data:'assignatures'
};
export const configurationUsers = {
idTable:'users',
idPagination:'pagination-users',
urlParams:{
hora:'0',
materia:'401'
},
pages:0,
rows:[],
actualPage:0,
headerConfig,
styleTable:'default',
cbSelection,
idRows:'idAssignature',
sort,
paginationFn,
attributesResponse
};
function cbSelection(e){
alert('Seleccionaste una fila de la tabla');
console.log(e);
}