Commit 5ae8cec1c53e3fb7e29711566dd73df0a17d395a
1 parent
fdf1eca202
Exists in
master
ejemplo
Showing
1 changed file
with
19 additions
and
1 deletions
Show diff stats
README.md
1 | 1 | # foca-modal |
2 | 2 | |
3 | -Modal de confirmación, alerta | |
4 | 3 | \ No newline at end of file |
4 | +Modal de confirmación, alerta | |
5 | + | |
6 | +EJEMPLO | |
7 | + //consulta a llamar | |
8 | + var query = '/hoja-ruta'; | |
9 | + | |
10 | + | |
11 | + var columnas = { | |
12 | + //nombre de <th> | |
13 | + nombre: ['codigo', 'fecha', 'Nº'], | |
14 | + //nombre de propiedad | |
15 | + propiedad: ['id', 'fechaCreacion', 'numeroHojaRuta'] | |
16 | + }; | |
17 | + //titulo de modal | |
18 | + var titulo = 'Busqueda hoja de ruta'; | |
19 | + | |
20 | + focaModalService.modal(columnas, query, titulo).then(function(hojaRuta) { | |
21 | + console.log(hojaRuta); | |
22 | + }); |