j-ClBind
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}lubdirsource {String}wymagane źródło danychid {String}jeden parowy klucz (default:id)nullable {Boolean}RenderynullWartość (default )true)exec {String}egzekucjafunction(value, element)Metodabind {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.
<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>