0.0.155 • Published 9 years ago

ramatrix v0.0.155

Weekly downloads
16
License
MIT
Repository
github
Last release
9 years ago

Stories in Ready

Ramatrix (React Availability Matrix)

A react component to gather a user's hourly availability.

Install

npm install ramatrix --save

Usage within a React component

import Ramatrix from 'ramatrix';

// call this function when you want to get the matrix data
getMatrixData () {
  console.log(this._myMatrix.getData()); // "{"7AMTh":true,"8AMTh":true.....
}

render () {
  return (
    <Ramatrix ref={(c) => this._myMatrix = c}/>
  );
}

Customizable options

Props can be passed for data and styling customization

militaryTime - boolean (true/false) | default - false

  • Will display hours from 0 - 23 or 12AM - 12PM

containerStyle - reactStyling object | default - display: inline-block;

  • styling that will be applied to outer container

cellWidth - reactStyling object | default - 65px

  • width that will be applied to individual cells

SSS1

Contribute/Development

Simply run npm install and npm run dev from the root of the project. This will run webpack-dev-server on port 8080.

0.0.155

9 years ago

0.0.154

9 years ago

0.0.152

9 years ago

0.0.151

9 years ago

0.0.15

9 years ago

0.0.149

9 years ago

0.0.148

9 years ago

0.0.147

9 years ago

0.0.146

10 years ago

0.0.145

10 years ago

0.0.144

10 years ago

0.0.143

10 years ago

0.0.142

10 years ago

0.0.140

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.1

10 years ago