Flags are the primary method for providing system feedback in the product’s user interface. Messages include notifications of various kinds: alerts, confirmations, notices, warnings, info, and errors.
For visual examples of each flag, see the Design guide.
1 2var flag = AP.flag.create({ title: 'Successfully created a flag.', body: 'This is a flag.', type: 'success', actions: { 'actionkey': 'Click me' } });
Creates a new flag.
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
Options of the flag. Properties
|
Returns: Flag~Flag
Closes the flag.
1 2var flag = AP.flag.create({ title: 'Successfully created a flag.', body: 'This is a flag.', type: 'info' }); // Close the flag. flag.close()
Rate this page: