This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

react-sangal

0.0.1 • Public • Published

react-sangal

React ui components based on bootstrap 4

NPM JavaScript Style Guide Actions Status

Install

npm install --save bootstrap
npm install --save react-sangal

# or with yarn

yarn add bootstrap
yarn add react-sangal

Usage

Example usages under example folder

import * as React from "react";

import SangalTa from "react-sangal";

import "bootstrap/dist/css/bootstrap.min.css";

class Example extends React.Component {
  render() {
    const pager = {
      currentPage: this.state.currentPage,
      lastPage: this.state.lastPage,
      onPageChangeEvent: this.onPageChange
    };
    const header = {
      clmnSelection: { text: "Selection", type: "checkbox", editable: true },
      clmnName: { text: "Name", type: "text", editable: false },
      clmnSurname: { text: "Surname", type: "text", editable: true }
    };
    const rows = [
      { clmnSelection: "1", clmnName: "John", clmnSurname: "Doe" },
      { clmnSelection: "0", clmnName: "Adam", clmnSurname: "Jackson" },
      { clmnSelection: "0", clmnName: "Garry", clmnSurname: "Smith" }
    ];
    return <SangalTable pager={pager} header={header} rows={rows} />;
  }
}

License

MIT © emrecankoc

PS: Project template based on create-react-library

Readme

Keywords

none

Package Sidebar

Install

npm i react-sangal

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

64.5 kB

Total Files

8

Last publish

Collaborators

  • emrecankoc