Commit 1659a7d9fdd0b2774c0ca3a836d85e8d12b50341

Authored by Eric Fernandez
Exists in master and in 1 other branch develop

Merge branch 'master' into 'develop'

Master(mpuebla)

See merge request !19
... ... @@ -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>