SurfaceBootstrap.Form.BootstrapErrorTag (surface_bootstrap v0.2.5)
Field that holds common markup for form controls.
https://getbootstrap.com/docs/5.0/forms/form-control/
Properties
- has_error :boolean - Does field have error?.
- has_change :boolean - Does field have change?.
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveComponent.mount/1
.
Callback implementation for Phoenix.LiveComponent.render/1
.
Translates an error message.
Callback implementation for Phoenix.LiveComponent.update/2
.
Link to this section Functions
Link to this function
mount(socket)
Callback implementation for Phoenix.LiveComponent.mount/1
.
Link to this function
render(assigns)
Callback implementation for Phoenix.LiveComponent.render/1
.
Link to this function
translate_error(arg)
Translates an error message.
This is the fallback (Phoenix's default implementation) if a translator
is not provided via config or the translate
prop.
Link to this function
update(assigns, socket)
Callback implementation for Phoenix.LiveComponent.update/2
.