You can specify a different color according to ajax events. This may be useful to highlight failures in red, and successes in green for example. Here is a global summary.
Event | Description | Test 1 | Test 2 |
---|---|---|---|
data-highlight-color |
Without event, data-highlight-color changes the default color. |
||
data-highlight-color-before |
Will highlight selected elements to the given color before the ajax call |
||
data-highlight-color-complete |
Will highlight selected elements to the given color after the ajax call, whatever if it failed or succeeded. |
||
data-highlight-color-success |
Will highlight selected elements to the given color after the ajax call, only if it succeeded. |
||
data-highlight-color-failure |
Will highlight selected elements after the ajax call, only if it failed. |
||
data-highlight-color-empty |
Will highlight selected elements to the given color after the ajax call, only if the response is empty. |
||
data-highlight-color-not-empty |
Will highlight selected elements to the given color after the ajax call, only if the response is not empty. |