new FormBox()
Example
import {FormBox,Form} from "mvcomponents/container"; import {TextInput, PassWordInput} from "mvcomponents/input"; let formBox = new FormBox("login"); let formTest = new Form(); let txtLogin = new TextInput("login"); txtLogin.setLabel("Login"); txtLogin.setName("login"); txtLogin.setSize(12); formBox.append(txtLogin); txtSenha = new PassWordInput("senha"); txtSenha.setLabel("Senha"); txtSenha.setName("senha"); txtSenha.setSize(12); formBox.append(txtSenha); btnOK = new Button("OK"); btnOK.addEvent(EMouseEvent.CLICK, () => { console.log('logar'); }); btnOK.setSize(12); formTest.append(formBox); formTest.append(btnOK);
Methods
-
setEnable(on)
-
Habilita ou desabilita o container.
Parameters:
Name Type Description on
boolean Returns:
- Type
- FormBox