Skip to content

Commit b75e157

Browse files
discordDOTtestdg
andauthored
components: 30 seconds (#918)
Co-authored-by: David Grudl <david@grudl.com>
1 parent 3e0ca06 commit b75e157

File tree

2 files changed

+422
-1
lines changed

2 files changed

+422
-1
lines changed

en/components.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ The signals may remind you a little bit AJAX: handlers that are called on the cu
212212
Flash Messages
213213
==============
214214

215-
A component has its own storage of flash messages independent of the presenter. These are messages that, for example, inform about the result of the operation. An important feature of flash messages is that they are available in the template even after redirection. Even after being displayed, they will remain alive for another three seconds - for example, in case the user would unintentionally refresh the page - the message will not be lost.
215+
A component has its own storage of flash messages independent of the presenter. These are messages that, for example, inform about the result of the operation. An important feature of flash messages is that they are available in the template even after redirection. Even after being displayed, they will remain alive for another thirty seconds - for example, in case the user would unintentionally refresh the page - the message will not be lost.
216216

217217
Sending is done by the method [flashMessage |api:Nette\Application\UI\Control::flashMessage()]. The first parameter is the message text or the `stdClass` object representing the message. Optional second parameter is its type (error, warning, info, etc.). The method `flashMessage()` returns an instance of flash message as object stdClass to which you can pass information.
218218

0 commit comments

Comments
 (0)