shaffex

Alert

Description

Presents an alert when a given condition is true.

Parameters

Examples

<body>
<vstack>
  <button alert="isPresented:myAlert" action="presentAlert:isPresented:myAlert">presentAlert:isPresented:myAlert</button>
</vstack>

<alert id="myAlert" alertTitle="Info" alertMessage="This is my alert">
</alert>

</body>
<body>
<button alert="item:myAlertItem" action="presentAlert:item:myAlertItem;id:myAlert" onAppear="presentAlert:item:myAlertItem;id:myAlert">Show Alert</button>

<alert id="myAlert" alertTitle="Info" alertMessage="This is my alert">
</alert>

</body>