1.0.4 • Published 4 years ago

mnr-decorator v1.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

MNR Decorator

A sub module for rendering table or form

Installation

The package can be installed via npm:

npm install mnr-decorator --save

Or via yarn:

yarn add mnr-decorator

Ussage

import React, { Component } from 'react'
import { ColumnSpec } from 'mnr-decorator'

export class ListPage extends Component {
    @ColumnSpec({ label: 'Type', isFilter: 'multi' })
    readonly type: string
    @ColumnSpec({ label: 'Subject', isFilter: 'single' })
    readonly subject: string
    @ColumnSpec({ label: 'Create Date', isFilter: 'date' })
    readonly createDate: number | string
    render() {
        return <h1>Hello</h1>
    }
}
1.0.4

4 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