Documentation / @zerotal/flow / index / RedirectFlash
Interface: RedirectFlash
Defined in: flow/src/Component.ts:165
Builder returned by Component.redirect (and redirectRoute/redirectIntended) so a
flash can be chained onto the redirect, mirroring the HTTP ResponseBuilder API.
Example
return this.redirect("/", 303).withSuccess("Welcome back.");
Methods
withSuccess()
withSuccess(
message):this
Defined in: flow/src/Component.ts:166
Parameters
message
string
Returns
this
withError()
withError(
message):this
Defined in: flow/src/Component.ts:167
Parameters
message
string
Returns
this
withInfo()
withInfo(
message):this
Defined in: flow/src/Component.ts:168
Parameters
message
string
Returns
this
withWarning()
withWarning(
message):this
Defined in: flow/src/Component.ts:169
Parameters
message
string
Returns
this
with()
with(
message,level):this
Defined in: flow/src/Component.ts:171
Flash with an explicit level.
Parameters
message
string
level
"error" | "success" | "warning" | "info"
Returns
this