Commit 87eee491f4718c3c274f835758775a831a8c2835
1 parent
921fade2fe
Exists in
master
and in
1 other branch
Agregado componente botonera productos.
Showing
2 changed files
with
20 additions
and
0 deletions
Show diff stats
src/js/app.js
... | ... | @@ -22,4 +22,12 @@ angular.module('focaBotoneraFacturador', []) |
22 | 22 | botones: '<', |
23 | 23 | max: '<' |
24 | 24 | } |
25 | + }) | |
26 | + .component('focaBotoneraProductos', { | |
27 | + templateUrl: 'src/views/botonera-productos.html', | |
28 | + controller: 'focaBotoneraTarjetasController', | |
29 | + bindings: { | |
30 | + botones: '<', | |
31 | + max: '<' | |
32 | + } | |
25 | 33 | }); |
src/views/botonera-productos.html
... | ... | @@ -0,0 +1,12 @@ |
1 | +<div | |
2 | + class="col-6 col-sm-3 p-2" | |
3 | + ng-repeat="boton in botones track by $index" | |
4 | + ng-class="{'d-md-grid': boton == ''}"> | |
5 | + <button | |
6 | + type="button" | |
7 | + class="btn btn-block btn-producto rounded border border-light p-0" | |
8 | + ng-click="(boton != '') ? ejecutarFuncion(boton.label) : null;" | |
9 | + > | |
10 | + <img ng-src="./img/{{boton.image}}" alt=""> | |
11 | + </button> | |
12 | +</div> |