1.0.6 • Published 3 years ago

performance-calculation-bitozen v1.0.6

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

performance-calculation-bitozen

NPM JavaScript Style Guide

Install

npm install --save performance-calculation-bitozen

Usage

import React, { Component } from 'react'

import MyComponent from 'performance-calculation-bitozen'

let defaultPayload = [
    {
        "title": 'TITLE 1',
        "data": {
            "rows": [
                {
                    "label": "label 1",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                },
                {
                    "label": "label 2",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                },
                {
                    "label": "label 3",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                }
            ],
            "paMidYear": "0",
            "gradePerformance": "0"
        }
    },
    {
        "title": 'TITLE 2',
        "data": {
            "rows": [
                {
                    "label": "label 1",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                },
                {
                    "label": "label 2",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                },
                {
                    "label": "label 3",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                }
            ],
            "paMidYear": "0",
            "gradePerformance": "0"
        }
    },
    {
        "title": 'TITLE 3',
        "data": {
            "rows": [
                {
                    "label": "label 1",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                },
                {
                    "label": "label 2",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                },
                {
                    "label": "label 3",
                    "weight": "0%",
                    "score": "0",
                    "totalScore": "0"
                }
            ],
            "paMidYear": "0",
            "gradePerformance": "0"
        }
    }
]

class Example extends Component {
  render () {
    return (
      <MyComponent payload={defaultPayload} />
    )
  }
}

License

MIT © ganjardbc

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago