Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Creating a "Do you want to save your changes" dialog

    I want to create a standard "Do you want to Save your changes?" dialog, with the options of Save (save data then continue), Don't Save (Don't save, and continue) and Cancel (Don't save, and don't continue on to the next screen).

    SC seems to believe that all dialog have only two buttons. The "Dialogs" in Showcase all use SC, rather than the Dialog class, and the Dialog JavaDoc is essentially useless ("NOTE: If you are building a custom component that will add components to the Window via addItem(), in most cases it makes sense " ends a bit, abruptly, don't you think?). yesClick () etc. seem like they could be useful, but there's nothing telling me how I might actually have a button that generates a "yesClick", so that's currently a dead end.

    TIA,

    Greg

    #2
    That doc has been fixed for some time in nightlies. You can add your own buttons via setToolbarButtons, ignore yesClick et al in this case and just do things through the normal Button.addClickHandler().

    Comment


      #3
      Thank you. How would I go about downloading the most up to date JavaDoc?

      Comment


        #4
        Same way you download the latest build: smartclient.com/builds.

        Comment

        Working...
        X