Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not workin for me #11

Open
ghost opened this issue May 6, 2019 · 0 comments
Open

Not workin for me #11

ghost opened this issue May 6, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented May 6, 2019

I make the example:

but the controler does no work.
My source:

import React, { Component } from 'react'
import PageHeader from '../template/pageHeader'
import Grid from '../template/grid'
import IconButton from '../template/iconButton'
import SwitchButton from 'lyef-switch-button';
import "../../css/main.css"
import PT from 'prop-types';

export default class ContasPagarCadastro extends Component {

constructor(props) {
    super(props)
    this.state = { descricao: '', list: {}}
    // this.callbackFunction = this.callbackFunction.bind(this)


    //this.handleChange = this.handleChange.bind(this)
    // this.handleAdd = this.handleAdd.bind(this)
    // this.handleSearch = this.handleSearch.bind(this)
    // this.handleClear = this.handleClear.bind(this)

    

 //   this.refresh()
}

render() {
    return (
        <div role='form' className='contaspagarCadastro'>
        <PageHeader name='Contas Pagar' small='Cadastro'></PageHeader>
            <Grid cols='12 9 10'>
                <label>Descricao</label>    
                <input id='descricao' className='form-control'
                    placeholder='Descricao'
                    // onChange={props.handleChange}
                    // onKeyUp={keyHandler}
                    // value={props.descricao}
                    ></input>
                </Grid>
                <Grid cols='5 9 5'>
                <label>Valor</label>    
                <input id='valor' className='form-control'
                    placeholder='Valor'
                    // onChange={props.handleChange}
                    // onKeyUp={keyHandler}
                    // value={props.descricao}
                ></input>
                </Grid>
                <Grid cols='5 9 5'>
                <label>Data Vencimento</label>    
                <input id='data_vencimento' className='form-control'
                    placeholder='Data de Vencimento'
                    // onChange={props.handleChange}
                    // onKeyUp={keyHandler}
                    // value={props.descricao}
                ></input>
                </Grid>
                <Grid cols='5 9 5'>
                <SwitchButton
                    id="my-button"
                    labelLeft="left"
                    labelRight="right"
                    isChecked
        
        
                />
                </Grid>
        </div>
    )

   
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants