# j-ClBind

> Składnik czyta element z połączonym źródłem danych. składnik obsługuje szablon Tangular wewnątrz elementu (opcjonalny).

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

Składnik czyta element z połączonym źródłem danych. Tangular Wymagany element (opcjonalnie) jako wartość przechowywana w `{{ value.something }}` wariantów .


__Konfiguracja__:

- `datasource {String}` lub `dirsource {String}` _ wymagane_ źródło danych
- `id {String}` jeden parowy klucz (default: `id`)
- `nullable {Boolean}` Rendery `null` Wartość (default ) `true`)
- `exec {String}` egzekucja `function(value, element)` Metoda
- `bind {String}` wiąże wartość czytania zgodnie z określonymi ścieżkami

Użyj go z `<ui-component name="clbind">`Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu `DEF.fallback` (Wydaje się Componentator Autor: Peter Širka Źródło: Componentator Zestaw składników, licencja MIT.

```html example.html
<ui-component name="clbind" path="form.typeid" config="datasource:#types;nullable:0;bind:form.type">
	<script type="text/html">
		<div>Value: {{ value.name }}</div>
	</script>
</ui-component>
<br />
<ui-bind path="!form.type" config="html:value.name"></ui-bind>

<script>
	DEF.cl.types = [{ id: 'totaljs', name: 'Total.js' }, { id: 'java', name: 'Java' }, { id: 'php', name: 'PHP' }, { id: '.net', name: '.NET' }];
	var form = {};
	form.typeid = 'totaljs';
</script>
```
