Examples of LaddaAjaxButton


Examples of de.agilecoders.wicket.extensions.markup.html.bootstrap.ladda.LaddaAjaxButton

  private void laddaButton() {
    Form form = new Form("laddaForm");
    add(form);

    LaddaAjaxButton laddaButton = new LaddaAjaxButton("laddaButton", Model.of("Button, 3secs"), form, Buttons.Type.Info) {
      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
        super.onSubmit(target, form);

        Duration.seconds(3).sleep();
      }
    };
    laddaButton.setSize(Buttons.Size.Small);

    LaddaAjaxLink<String> laddaLink = new LaddaAjaxLink<String>("laddaLink", Model.of("Link, 2secs"), Buttons.Type.Success) {
      @Override
      public void onClick(AjaxRequestTarget target) {
        Duration.seconds(2).sleep();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.