# j-Cl

> The component parses inline data defined in the component's element. Data is parsed to the code list format.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 5f3e33d524cacf124a201cd7da66e960e8e5571c7620e7e472bde03498b6c846
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

The component parses inline data defined in the component's element. Data is parsed to the code list format.

- Data source format: `id1|name1|icon1,id2|name2|icon2,id3|name3|icon3`
- Parsed to: `[{ id, name, icon }]`

__Example__:

```html
<ui-component name="cl" path="#mycodelist" value="SK|Slovakia,CZ|Czechia,DE|Germany,FR|France"></ui-component>
```

Use it with `<ui-component name="cl">`. 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.

```html example.html
<ui-component name="cl" path="#mycodelist" value="SK|Slovakia,CZ|Czechia,DE|Germany,FR|France"></ui-component>

<ui-bind path="#mycodelist" config="html pre:JSON.stringify(value, null, '  ')" class="block">
	<pre></pre>
</ui-bind>
```
