Class ConfirmDangerDataAttributes

java.lang.Object
com.jalios.jcms.uicomponent.ConfirmDangerDataAttributes

public class ConfirmDangerDataAttributes extends Object
Usage : new ConfirmDangerDataAttributes().title("X").message("Y").cancelButtonLabel("S").confirmButtonLabel("W").getDataAttributes() If labels are not defined, confirm will fallback on default texts (In js)
Since:
jcms-10.0.5 / JCMS-8368
  • Constructor Details

    • ConfirmDangerDataAttributes

      public ConfirmDangerDataAttributes()
  • Method Details

    • title

      public ConfirmDangerDataAttributes title(String title)
      Parameters:
      title - the title of the confirm modal
      Returns:
      a reference to this object
    • message

      public ConfirmDangerDataAttributes message(String message)
      Parameters:
      message - the message of the confirm modal
      Returns:
      a reference to this object
    • cancelButtonLabel

      public ConfirmDangerDataAttributes cancelButtonLabel(String cancelButtonLabel)
      Parameters:
      cancelButtonLabel - the cancel button label of the confirm modal
      Returns:
      a reference to this object
    • confirmButtonLabel

      public ConfirmDangerDataAttributes confirmButtonLabel(String confirmButtonLabel)
      Parameters:
      confirmButtonLabel - the cancel button label of the confirm modal
      Returns:
      a reference to this object
    • getDataAttributes

      public String getDataAttributes()
    • toString

      public String toString()
      Overrides:
      toString in class Object