ForgeComponents
en

Components

j-Error

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20
  • errors are displayed only if the path contains an array in the form below:
[
	{ error: 'Error Message 1' },
	{ error: 'Error Message 2' }
]

Configuration:

  • icon {String} an error icon (default: warning)

Use it with <ui-component name="error">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

example.html
<ui-component name="error" path="mycustomerror"></ui-component>

<script>
	var mycustomerror = [{ error: 'Invalid Email Address' }, { error: 'Password is too short' }];
</script>