0.1.1 • Published 10 years ago

react-ajaxing v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 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

10 years ago

0.1.0

10 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago