Package org.sgx.yuigwt.yuigallery.form

Examples of org.sgx.yuigwt.yuigallery.form.Form


    FormField checkbox1 = Y.newCheckboxField(FormFieldConfig.create().
      name("myCheckbox").value("check").label("Do you like sports?"));
   
    Window.alert(Y.FormField().INVALID_DATE_MESSAGE()+" - "+checkbox1.label());
   
    Form form1 = Y.newForm(FormConfig.create().method("post").
      action("/test.php?action=submit").
      inlineValidation(true).
      children(

        checkbox1,
       
        FormFieldConfig.create("text").name("input1").label("Email input").validator("email"),
       
        FormFieldConfig.create("SelectField").label("Radio Choices").name("choiceinput").choices(
          FormFieldConfig.create().label("Choice A").value("A"),
          FormFieldConfig.create().label("Choice B").value("B")
        ),
       
        FormFieldConfig.create("SubmitButton").value("submit")
       
    ));
   
    form1.render(parent);
   
    //OK, now just use independent form widgets
   
//    panel1 = parent.append("<span></span>");
  }
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yuigallery.form.Form

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.