Commit b155399b40521611f8552fe893c1c8e1fc319f21
1 parent
a365cc3f35
Exists in
master
servicio ocultar boton teclado
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
src/js/service.js
| ... | ... | @@ -2,6 +2,7 @@ angular.module('focaBotoneraLateral') |
| 2 | 2 | .service('focaBotoneraLateralService', function() { |
| 3 | 3 | |
| 4 | 4 | this.botones = { |
| 5 | + teclado: true, | |
| 5 | 6 | salir: false, |
| 6 | 7 | cancelar: false, |
| 7 | 8 | pausar: false, |
| ... | ... | @@ -12,6 +13,9 @@ angular.module('focaBotoneraLateral') |
| 12 | 13 | custom: [] |
| 13 | 14 | }; |
| 14 | 15 | |
| 16 | + this.showTeclado = function(value) { | |
| 17 | + this.botones.teclado = value; | |
| 18 | + }; | |
| 15 | 19 | this.showSalir = function(value) { |
| 16 | 20 | this.botones.custom = []; |
| 17 | 21 | this.botones.salir = value; |
src/views/botonera-lateral.html
| ... | ... | @@ -61,7 +61,7 @@ |
| 61 | 61 | </div> |
| 62 | 62 | </div> |
| 63 | 63 | </div> |
| 64 | -<div class="container botonera-lateral teclado"> | |
| 64 | +<div class="container botonera-lateral teclado" ng-show="botones.teclado"> | |
| 65 | 65 | <div class="row"> |
| 66 | 66 | <div class="col-auto my-2 col-2 offset-10 d-none d-md-flex" style="min-height: 176px"> |
| 67 | 67 | <div class="px-2 mt-auto"> |