<fr:positive-choice>elements to indicate which buttons you want to have, and in which order they should be shown.
<fr:positive-choice``>, which will run when/if users press the Yes button.
fr-showto the dialog:
<fr:label>inside the button element. For instance, you would change the label for positive choice from Yes to OK and for the negative choice from No to Cancel with:
<xhtml:span>with the class indicated in the table below around each button, which allows you to have a different style depending on the button type. For instance, if you can use the following CSS rule to remove the icon for the positive choice button:
<fr:``positive-choice``>or or , and run them on the
DOMActivateevent, as done in the example above.
neutral-targetid. Then, the alert dialog dispatches an event named
fr-neutralto that element. This second technique is particularly useful when you want to have one instance of an alert dialog that you want to reuse from the multiple places in your form.
context; the value of this property must be a string, and it will be passed back to your handler for
fr-neutral. This is particularly useful when you want to "forward" an event property to your custom handler. For instance you can open the dialog with:
fr:message, you can pass it dynamically when opening the dialog:
xbl-fr-alert-dialog-questionand the dialog looks like:
xbl-fr-alert-dialog-infoand the dialog looks like: