
import React from 'react';
import autoBind from 'react-autobind';
import { ButtonToolbar, Button } from 'react-bootstrap'

import Log from '../../Tools/LogTools'



export default class BootstrapControl extends React.Component {

    constructor(props) {
        super(props);
        autoBind(this);
        Log("BootstrapControl", "start");
    }


    //PostTest() {
    //    let test_url = "/Test/Test";
        
    //    fetch(test_url,
    //        {
    //            method: "Post",
    //            headers: {
    //                'Content-Type': 'application/json'
    //            },
    //            body: JSON.stringify({ id: 2, name: "n" })
    //        });
    //}

    ToastifyTest() {

        this.Leght = (this.Leght == undefined ? 0 : this.Leght) + 500;

        //Notification.Sho("Test");
    }

    render() {

        return (
            <div>
                <p>Bootstrap test</p>
                <ButtonToolbar>
                    <Button onClick={this.ToastifyTest} variant="outline-primary">Primary</Button>
                    <Button variant="outline-secondary">Secondary</Button>
                    <Button variant="outline-success">Success</Button>
                    <Button variant="outline-warning">Warning</Button>
                    <Button variant="outline-danger">Danger</Button>
                    <Button variant="outline-info">Info</Button>
                    <Button variant="outline-light">Light</Button>
                    <Button variant="outline-dark">Dark</Button>
                </ButtonToolbar>
            </div>
        );

    }
}
