Coder Social home page Coder Social logo

reactodometer's Introduction

ReactOdometer

将Odometer转化为react控件。

注意

这个控件并没有试图替代odometer,只是把odometer的api封装为react的api而已。你依然需要引入odometer的js和css文件。比原生odometer方便一点点的地方是: format(数字格式)是可以实时更改的。

##DEMO

image

使用

在你的文件中引入odometer.js和odometer.css文件

  • rnStyle : css类名。用于定制显示的格式
  • value : 显示的值
  • format : 显示的格式。如11,222。请参考这里
  <RunningNumber rnStyle="my-running-number" value={this.state.value} format={this.state.format}/>

TODO

  • 动态更改odometer的format
  • 动画duration接口

reactodometer's People

Contributors

eeandrew avatar

Watchers

 avatar  avatar

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.