Skip to content

Botones

Samuel edited this page Apr 27, 2016 · 2 revisions
<a we-button icon="cog">{{ text }}</a>

Atributos y opciones

  • icon: adjunta un ícono al botón. Si no hay elementos para transcluír, entonces se agrega al template la clase only-icon (detectar si hay transclude)
  • type primary|success|warning|danger|info|gray|inverse: cambia los estilos del botón.
  • to-load: incluye este atributo para agregar un cargador al botón, luego de haber hecho click en él.
  • size large|small|tiny: cambia el tamaño del botón.
  • state disabled|selected|active|hover: cambia el estado default del botón.

Otras clases

  • no-cursor: no muestra cursor.
  • no-paddings: no incluye paddings verticales ni horizontales.
  • no-x-paddings: no incluye paddings horizontales.
  • animated: agrega animación sobre todos los atributos del botón.
  • underline: decora el texto del botón con subrayado.
  • block: hace que el botón ocupe el 100% de su contenedor.
  • clear-background: hace que el botón no tenga background.

Clone this wiki locally