Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Option Dialog properties

Hello,

I don't understand the difference in a OptionDialog between the destructive property, cancel property and other option.

What do especially these properties apart modify the option color ?

I saw in all cases, the optionDialog is closed when I click in all option.

Regards,

— asked October 13th 2010 by Remi Delcourt
  • optiondialog
0 Comments

1 Answer

  • Accepted Answer

    They do absolutely nothing different than eachother other than modify the color. Destructive is red, cancel is black (Or grey, can't remember) and default is that whitish.

    Destructive is used for "Delete" buttons, "Remove", stuff like that. "Cancel" is used for "Cancel" buttons (Obviously), and default is for everything that doesn't fall into those categories. And you have to define what they do in an EventListener.

    — answered October 13th 2010 by Colton Arabsky
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.