Giter VIP home page Giter VIP logo

simpletimeraddon's Introduction

Build Status

Simple Timer Addon

Simple Timer for Vaadin 10+ based on https://github.com/annsonn/simple-timer

Online demo

Online demo here

Building and running demo

  • git clone repository
  • mvn clean install jetty:run

To see the demo, navigate to http://localhost:8080/

Release notes

  • Version 1.0.0 Supports Vaadin 10-13 and Vaadin 14 in compatibility mode
  • Version 2.0.0 Supports Vaadin 14 in npm mode

Issue tracking

The issues for this add-on are tracked on its github.com page. All bug reports and feature requests are appreciated.

Contributions

Contributions are welcome, but there are no guarantees that they are accepted as such. Process for contributing is the following:

  • Fork this project
  • Create an issue to this project about the contribution (bug or feature) if there is no such issue about it already. Try to keep the scope minimal.
  • Develop and test the fix or functionality carefully. Only include minimum amount of code needed to fix the issue.
  • Refer to the fixed issue in commit
  • Send a pull request for the original project
  • Comment on the original issue that you have implemented a fix for it

License & Author

This add-on is distributed under Apache License 2.0. For license terms, see LICENSE.txt.

Simple Timer Addon is written by Flowing Code S.A.

Developer Guide

Using the component

  • Basic usage
		SimpleTimer timer = new SimpleTimer(new BigDecimal("30"));
		timer.start();
		timer.pause();
		timer.reset();
		timer.setCountUp(true);
		timer.isRunning();
		
  • Timer Ended listener
		timer.addTimerEndEvent(ev-> Notification.show("Timer ended"));

simpletimeraddon's People

Contributors

flang avatar flowingcodeci avatar javier-godoy avatar mlopezfc avatar ngonzalezpazfc avatar paodb avatar scardanzan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

simpletimeraddon's Issues

add a silent mode

Hi Javier.

Would you consider adding a silent execution mode where the clock is not visible ?, so that only the timer event is generated and can react to it.
For example, to change a graph every x seconds.

Thanks.

Marcelo

Release for Vaadin 24

Hello,
are you planning release for Vaadin 24?
I see commits with 24 support but it was not released yet, was it?

Thx

JS

Make the format customizable

Improve the web component to enable setting of the format to be used when displaying the time remaining and adding the needed methods to the Java API

$0.start is not a function error

From directory:

Im getting a

(TypeError) : $0.start is not a function

in an error popup when using it as

  	SimpleTimer timer = new SimpleTimer(new BigDecimal("1"));
  	layout.add(timer);
  	timer.start();
  	timer.addTimerEndEvent(ev-> Notification.show("Timer ended"));

Second message added more information:

I'm using Vaadin 21.0.0 with Spring boot 2.5.4.

Update to Vaadin 14

Hi,
it would be nice to have a working version for Vaadin 14 (not in compability mode).
Actually there are some TypeError in the component's functions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.