ForgeComponents
en

Components

j-ElementID

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

This component fills the data-id attribute with the value read from the path.

Use it with <ui-component name="elementid">. 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
Check the <b>data-id</b> attribute via Web Developer tools.

<ui-component name="elementid" path="common.id"></ui-component>

<script>

	var common = { id: '123456' };

</script>