jueves, 12 de junio de 2014

SCADA: basic percentage

Hi everyone, today we are going to create a widget for a project that I have in mind, a SCADA made with Meteor.

So we are going to see a widget that is a basic percentage, which color is green if it's minus 50%, and red in other case.

Let's see the code. how to use:


the template:

the helpers:

and the main.coffee


Now is suficient with update the element in the collection with a new value, and you will see the change. It's easy, is a super simple percentage bar.

No hay comentarios:

Publicar un comentario