0.1.1 • Published 8 years ago

react-ajaxing v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

react-ajaxing

tell the component ajax is sending

react-ajaxing

Install

npm install react-ajaxing

Usage

var Spinner = require('react-ajaxing');

//...

login: function(){
  this.setState({
    loading: true
  });
  this.setTimeout( ()=>{
    this.setState({
      loading: false
    });
  }, 1500);
},

render: function(){
  return (
    <button type ="submit" onClick={@login}>
      <Spinner loading={@state.loading} size={20} color="red"><span>Login</span></Spinner>
    </button>
  )
}

Options

loading(boolean): Required

indicate it is loading status or not

size(number): Optional

spinner size(px) default: 20

color(string): Optional

spinner color default: '#FFF'

0.1.1

8 years ago

0.1.0

8 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago