---
title: ui-bind
project: jComponent V19
version: 19.194
section: reference
language: de
license: MIT
url: https://totaljs.es/docs/de/jcomponent-v19/19-194/reference/ui-bind/
updated: 2026-11-18T13:58:24.464Z
---

# ui-bind

> Die Attribute und Befehle des Elements ui-bind und das Binder-Objekt, das es erstellt.

Das Element `<ui-bind>` überwacht einen Path und aktualisiert das DOM, wenn sich der Wert ändert. Sein Attribut `config` enthält eine Liste von Befehlen. Das Konzept erklärt [Datenbindung](../../guides/data-binding/).

## API

### path="path"

Type: `property`

Legt den Path fest, den das Element überwacht.

Das Attribut akzeptiert diese Formen:

| Wert | Bedeutung |
| --- | --- |
| `form.name` | Ein absoluter Path. |
| `!form.name` | Die Befehle werden übersprungen, solange der Wert `null` oder `undefined` ist. |
| `?.name` | Ein Path relativ zum nächstgelegenen [`ui-plugin`](../ui-plugin/). |
| `*name` | Ein Path innerhalb von `DEF.pathcommon`. |
| `%name` | Ein temporärer Path. |
| `@key` | Ein Wert, der mit [`data()`](../component/#data) der übergeordneten Komponente gespeichert wurde. `@` allein ist der Wert dieser Komponente und `@config.key` ist ein Konfigurationsschlüssel. |
| `.name` | Ein Path innerhalb des Modells eines [virtuellen Binders](../vbinder/). `.` allein ist das gesamte Modell. |
| `form.name --> expression` | Wandelt den Wert mit einem Ausdruck um, der `value` erhält. |

Hat das Element einen Path, aber kein `config`, muss der Path eine Funktion enthalten, die mit dem Element aufgerufen wird.

Example: Leere Werte überspringen
```html
<ui-bind path="!form.name" config="text">Waiting</ui-bind>
```

Example: Den Wert umwandeln
```html
<ui-bind path="form.name --> value.toUpperCase()" config="text"></ui-bind>
<script>SET('form.name', 'peter');</script>
```

Example: Daten der übergeordneten Komponente lesen
```html
<ui-component name="card" config="title:Orders">
    <ui-bind path="@config.title" config="text"></ui-bind>
</ui-component>
<script>COMPONENT('card', function(self) {});</script>
```

Example: Eine Funktion mit dem Element aufrufen
```html
<ui-bind path="common.init" id="box"></ui-bind>
<script>
    window.common = { init: element => console.log(element.attr('id')) };  // box
</script>
```

### config="command:expression;command:expression"

Type: `property`

Enthält die Befehle des Elements.

Befehle werden durch ein Semikolon getrennt. Jeder Befehl hat die Form `name:expression`. Siehe [Befehlssyntax](#command-syntax).

Example: Zwei Befehle
```html
<ui-bind path="form.age" config="text:value + ' years';.adult:value >= 18"></ui-bind>
<script>SET('form.age', 20);</script>
```

### element="selector"

Type: `property`

Wendet die Befehle auf ein anderes Element an.

Der Wert ist ein jQuery-Selektor, der im gesamten Dokument ausgewertet wird.

Example: Ein Element an anderer Stelle aktualisieren
```html
<ui-bind path="form.name" element="#target" config="text"></ui-bind>
<div id="target"></div>
<script>SET('form.name', 'Peter');</script>
```

### parent="selector"

Type: `property`

Wendet die Befehle auf das nächstgelegene passende Elternelement an.

Der Wert ist ein jQuery-Selektor, der an `closest()` übergeben wird.

Example: Ein Elternelement aktualisieren
```html
<div class="row">
    <ui-bind path="form.name" parent=".row" config="title:value"></ui-bind>
</div>
<script>SET('form.name', 'Peter');</script>
```

### child="selector"

Type: `property`

Wendet die Befehle auf den ersten passenden Nachfahren an.

Das Attribut lässt sich mit [`parent`](#parent) kombinieren.

Example: Ein Kindelement aktualisieren
```html
<ui-bind path="form.name" child="b" config="text">
    <b></b>
</ui-bind>
<script>SET('form.name', 'Peter');</script>
```

### plugin="path"

Type: `property`

Erstellt einen Scope direkt auf dem Element.

Der Wert ist der Path des Scopes.

Example: Ein Scope auf dem Element
```html
<ui-bind plugin="users" path="?.name" config="text"></ui-bind>

<script>
    PLUGIN('users', function(exports) {
        exports.set('name', 'Peter');
    });
</script>
```

### [!~]command [selector]:expression

Type: `type`

Ein Befehl besteht aus einem Namen und einem optionalen Ausdruck.

Der Ausdruck kann diese Formen haben:

| Form | Bedeutung |
| --- | --- |
| weggelassen | Der Wert selbst, wie bei `text`. |
| `value + 1` | Ein JavaScript-Ausdruck, der das Wort `value` enthält. Die Variablen `value`, `path` und `el` stehen zur Verfügung. |
| `value => value + 1` | Eine Pfeilfunktion. |
| `common.format` | Der Path einer Funktion, die mit `value`, `path` und `el` aufgerufen wird. |
| `?/format` | Eine Methode des Plugins des nächstgelegenen Scopes. |

Die Präfixe und Trennzeichen sind:

| Syntax | Bedeutung |
| --- | --- |
| `command selector:expression` | Führt den Befehl auf den Nachfahren aus, die zum Selektor passen. |
| `text+title:value` | Führt einen Ausdruck für mehrere Befehle aus. |
| `!command` | Überspringt den Befehl, solange der Wert `null` oder `undefined` ist. Auf dem Element selbst kehren `text`, `html`, `title`, `value`, `src`, `checked`, `disabled` und `enabled` dann zu ihrem ursprünglichen Inhalt zurück. |
| `~command` | Führt den Befehl auch aus, während das Element durch `show`, `hide`, `visible` oder `invisible` ausgeblendet ist. |

Example: Formen von Ausdrücken
```html
<ui-bind path="form.name" config="text b:value.length;title:n => n + '!';.long:common.long">
    <b></b>
</ui-bind>
<script>
    window.common = { long: value => value.length > 3 };
    SET('form.name', 'Peter');
</script>
```

Example: Ein Ausdruck für zwei Befehle
```html
<ui-bind path="form.name" config="text+title:value"></ui-bind>
<script>SET('form.name', 'Peter');</script>
```

Example: Den ursprünglichen Inhalt wiederherstellen
```html
<ui-bind path="form.name" config="!text">Anonymous</ui-bind>
<script>
    SET('form.name', 'Peter');
    setTimeout(() => SET('form.name', null), 500);
</script>
```

Example: Ein ausgeblendetes Element aktualisieren
```html
<ui-bind path="form.name" config="~text;hide:value">Anonymous</ui-bind>
<script>SET('form.name', 'Peter');</script>
```

### text[:expression]

Type: `command`

Setzt den Textinhalt.

Der Wert wird escapt. Die Befehle [`format`](#format), [`currency`](#currency), [`helper`](#helper) und [`empty`](#empty) verändern die Ausgabe.

Example: text verwenden
```html
<ui-bind path="form.name" config="text"></ui-bind>
<script>SET('form.name', '<b>Peter</b>');</script>
```

### html[:expression]

Type: `command`

Setzt den HTML-Inhalt.

Der Wert wird nicht escapt.

Example: html verwenden
```html
<ui-bind path="form.name" config="html:'<b>' + value + '</b>'"></ui-bind>
<script>SET('form.name', 'Peter');</script>
```

### value[:expression]

Type: `command`

Setzt den Wert eines Formularfelds.

Auch der Kurzname `val` funktioniert.

Example: value verwenden
```html
<ui-bind path="form.name" config="value input">
    <input />
</ui-bind>
<script>
    SET('form.name', 'Peter');
    setTimeout(() => console.log($('input').val()), 500);  // Peter
</script>
```

### title[:expression]

Type: `command`

Setzt das Attribut `title`.

Example: title verwenden
```html
<ui-bind path="form.name" config="title"></ui-bind>
<script>SET('form.name', 'Peter');</script>
```

### href[:expression]

Type: `command`

Setzt das Attribut `href`.

Example: href verwenden
```html
<ui-bind path="form.id" config="href a:'/users/' + value + '/'">
    <a>Detail</a>
</ui-bind>
<script>SET('form.id', 5);</script>
```

### src[:expression]

Type: `command`

Setzt das Attribut `src`.

Example: src verwenden
```html
<ui-bind path="form.photo" config="src img">
    <img />
</ui-bind>
<script>SET('form.photo', 'data:,');</script>
```

### attr name [selector]:expression

Type: `command`

Setzt ein beliebiges Attribut.

Der Name des Attributs folgt auf den Befehl. Auf den Namen kann ein Selektor folgen.

Example: attr verwenden
```html
<ui-bind path="form.id" config="attr data-id:value;attr data-ref b:value">
    <b></b>
</ui-bind>
<script>SET('form.id', 5);</script>
```

### .classname[ selector]:expression

Type: `command`

Schaltet eine CSS-Klasse anhand des Ergebnisses des Ausdrucks um.

Schreibe den Namen der Klasse hinter den Punkt.

Example: Klassen umschalten
```html
<ui-bind path="form.age" config=".adult:value >= 18;.minor:value < 18"></ui-bind>
<script>SET('form.age', 20);</script>
```

### class:classes

Type: `command`

Schaltet CSS-Klassen einmalig um, nach der ersten Aktualisierung.

Trenne mehrere Klassen durch ein Leerzeichen.

Example: class verwenden
```html
<ui-bind path="form.name" config="class:ready"></ui-bind>
<script>SET('form.name', 'Peter');</script>
```

### show[:expression]

Type: `command`

Zeigt das Element an, wenn der Ausdruck truthy ist.

Andernfalls erhält das Element die Klasse `hidden`. Solange es ausgeblendet ist, werden die folgenden Befehle übersprungen, sofern sie nicht das Präfix `~` haben.

Example: show verwenden
```html
<ui-bind path="form.age" config="show:value >= 18">Adult</ui-bind>
<script>SET('form.age', 10);</script>
```

### hide[:expression]

Type: `command`

Blendet das Element aus, wenn der Ausdruck truthy ist.

Das Element erhält die Klasse `hidden`. Auch der Name `hidden` funktioniert.

Example: hide verwenden
```html
<ui-bind path="form.age" config="hide:value >= 18">Minor</ui-bind>
<script>SET('form.age', 20);</script>
```

### visible[:expression]

Type: `command`

Behält den Platz im Layout bei, wenn der Ausdruck falsy ist.

Das Element erhält die Klasse `invisible`, wenn der Ausdruck falsy ist.

Example: visible verwenden
```html
<ui-bind path="form.age" config="visible:value >= 18">Adult</ui-bind>
<script>SET('form.age', 10);</script>
```

### invisible[:expression]

Type: `command`

Fügt die Klasse `invisible` hinzu, wenn der Ausdruck truthy ist.

Example: invisible verwenden
```html
<ui-bind path="form.age" config="invisible:value >= 18">Minor</ui-bind>
<script>SET('form.age', 20);</script>
```

### checked[:expression]

Type: `command`

Setzt die Eigenschaft `checked` eines Felds.

Example: checked verwenden
```html
<ui-bind path="form.active" config="checked input">
    <input type="checkbox" />
</ui-bind>
<script>
    SET('form.active', true);
    setTimeout(() => console.log($('input').prop('checked')), 500);  // true
</script>
```

### disabled[:expression]

Type: `command`

Deaktiviert Felder und Komponenten, wenn der Ausdruck truthy ist.

Auch der Kurzname `disable` funktioniert. Ohne Selektor gilt der Befehl für `ui-component`, `input`, `textarea`, `select` und `button` innerhalb des Elements. Komponenten erhalten den Konfigurationsschlüssel `disabled`.

Example: disabled verwenden
```html
<ui-bind path="form.locked" config="disabled">
    <button>Save</button>
</ui-bind>
<script>SET('form.locked', true);</script>
```

### enabled[:expression]

Type: `command`

Aktiviert Felder und Komponenten, wenn der Ausdruck truthy ist.

Auch der Kurzname `enable` funktioniert. Der Standardselektor ist derselbe wie bei [`disabled`](#disabled).

Example: enabled verwenden
```html
<ui-bind path="form.valid" config="enabled">
    <button>Save</button>
</ui-bind>
<script>SET('form.valid', false);</script>
```

### required selector:expression

Type: `command`

Setzt den Konfigurationsschlüssel `required` einer Komponente.

Gib einen Selektor an, denn der Befehl hat keinen Standardselektor.

Example: required verwenden
```html
<ui-bind path="form.strict" config="required ui-component:value">
    <ui-component name="box"></ui-component>
</ui-bind>
<script>
    COMPONENT('box', function(self) {
        self.configure = (key, value) => key === 'required' && console.log(value);  // true
    });
    SET('form.strict', true);
</script>
```

### config:expression

Type: `command`

Konfiguriert Komponenten mit dem Ergebnis des Ausdrucks neu.

Der Standardselektor ist `ui-component`.

Example: config verwenden
```html
<ui-bind path="form.title" config="config:'title:' + value">
    <ui-component name="box"></ui-component>
</ui-bind>
<script>
    COMPONENT('box', function(self) {
        self.configure = (key, value) => key === 'title' && console.log(value);  // Orders
    });
    SET('form.title', 'Orders');
</script>
```

### set[:expression]

Type: `command`

Übergibt das Ergebnis des Ausdrucks an den `setter` einer Komponente ohne Path.

Der Standardselektor ist `ui-component`. Die Komponente kann in denselben Path zurückschreiben.

Example: set verwenden
```html
<ui-bind path="form.name" config="set:value + '!'">
    <ui-component name="box"></ui-component>
</ui-bind>
<script>
    COMPONENT('box', function(self) {
        self.setter = value => self.text(value);
    });
    SET('form.name', 'Peter');
</script>
```

### setter:'selector/method',value

Type: `command`

Ruft eine Methode der passenden Komponenten auf.

Der Ausdruck enthält die Argumente von `SETTER()` und wird mit `value`, `path` und `el` ausgewertet.

Example: setter verwenden
```html
<ui-bind path="form.name" config="setter:'box/show',value">
    <ui-component name="box"></ui-component>
</ui-bind>
<script>
    COMPONENT('box', function(self) {
        self.show = value => value && console.log(value);  // Peter
    });
    setTimeout(() => SET('form.name', 'Peter'), 500);
</script>
```

### template [selector][:selector-->attribute]

Type: `command`

Rendert ein Tangular-Template.

Das Template ist das erste `<script>` oder `<template>` innerhalb des Elements. Das Modell hat die Eigenschaften `value` und `path`.

Die optionale Form `template:selector-->attribute` aktualisiert nur die geänderten Kindelemente. Der Selektor findet die Einträge und das Attribut identifiziert sie. Mehr dazu erfährst du unter [Templates mit Tangular](../../guides/tangular/).

Example: template verwenden
```html
<ui-bind path="form.items" config="template">
    <script type="text/html">
        {{ foreach m in value }}<li>{{ m }}</li>{{ end }}
    </script>
</ui-bind>
<script>SET('form.items', ['A', 'B']);</script>
```

### helpers:path

Type: `command`

Übergibt Tangular-Helper an das Template.

Der Wert ist ein Path zu einem Objekt mit Helpern oder zu einer Funktion, die ein solches Objekt zurückgibt.

Example: helpers verwenden
```html
<ui-bind path="form.name" config="template;helpers:common.helpers">
    <script type="text/html">{{ value | shout }}</script>
</ui-bind>
<script>
    window.common = { helpers: { shout: value => value + '!' } };
    SET('form.name', 'Peter');
</script>
```

### vbindarray

Type: `command`

Rendert ein Array mit einem virtuellen Binder pro Eintrag.

Das Template ist das erste `<script>` oder `<template>` innerhalb des Elements. Paths innerhalb des Templates beginnen mit einem Punkt. Siehe [Virtueller Binder](../vbinder/).

Example: vbindarray verwenden
```html
<ui-bind path="form.users" config="vbindarray">
    <script type="text/html">
        <div><ui-bind path=".name" config="text"></ui-bind></div>
    </script>
</ui-bind>
<script>SET('form.users', [{ name: 'Peter' }, { name: 'Anna' }]);</script>
```

### import:url

Type: `command`

Lädt Inhalte in das Element.

Der Wert ist einer der folgenden:

| Wert | Bedeutung |
| --- | --- |
| Eine URL, die mit `/`, `http://` oder `https://` beginnt | Importiert die URL einmal. |
| `value` oder `true` | Verschiebt das erste innere `<script>` oder `<template>` in das DOM. |
| Ein Ausdruck | Importiert die URL, die der Wert des Paths liefert, einmal pro URL. |

Der Import wartet, bis das Element sichtbar ist, und lässt sich daher mit [`show`](#show) kombinieren.

Example: Ein Template einfügen, wenn das Element angezeigt wird
```html
<ui-bind path="form.open" config="show;import:value">
    <script type="text/html"><b>Loaded</b></script>
</ui-bind>
<script>
    setTimeout(() => SET('form.open', true), 500);
</script>
```

### macro:name1,name2

Type: `command`

Hängt Macros an das Element an.

Trenne mehrere Namen durch ein Komma. Siehe [Macro](../macro/).

Example: macro verwenden
```html
<ui-bind path="form.name" config="macro:shout"></ui-bind>
<script>
    MACRO('shout', function(self) {
        self.setter = value => self.text(value + '!');
    });
    SET('form.name', 'Peter');
</script>
```

### exec:path

Type: `command`

Ruft bei jeder Aktualisierung eine Funktion auf.

Die Funktion erhält `value`, `path` und `el`, und `this` ist das Element. Dabei bekommt die Funktion immer den Rohwert. Auch der Name `change` funktioniert.

Example: exec verwenden
```html
<ui-bind path="form.name" config="exec:common.onchange"></ui-bind>
<script>
    window.common = { onchange: (value, path) => value && console.log(value, path) };  // Peter form.name
    setTimeout(() => SET('form.name', 'Peter'), 500);
</script>
```

### init:path

Type: `command`

Ruft zu Beginn jeder Aktualisierung eine Funktion auf.

Die Funktion erhält `value`, `path` und `el`.

Example: init verwenden
```html
<ui-bind path="form.name" config="init:common.oninit"></ui-bind>
<script>
    window.common = { oninit: value => value && console.log(value) };  // Peter
    SET('form.name', 'Peter');
</script>
```

### refresh:path

Type: `command`

Ruft bei jeder Aktualisierung eine Funktion auf, solange das Element sichtbar ist.

Die Funktion erhält `value`, `path` und `el`.

Example: refresh verwenden
```html
<ui-bind path="form.name" config="refresh:common.onrefresh"></ui-bind>
<script>
    window.common = { onrefresh: value => value && console.log(value) };  // Peter
    SET('form.name', 'Peter');
</script>
```

### click [selector]:path

Type: `command`

Ruft eine Funktion auf, wenn auf das Element geklickt wird.

Die Funktion erhält das jQuery-Element, das Event, den aktuellen Wert und den Path. Ein Selektor delegiert den Klick an die passenden Nachfahren. Deaktivierte Eingabefelder und Buttons werden ignoriert.

Example: click verwenden
```html
<ui-bind path="form.name" config="click button:common.onclick">
    <button>Save</button>
</ui-bind>
<script>
    window.common = {
        onclick: (element, event, value, path) => console.log(element.text(), value, path)  // Save Peter form.name
    };
    SET('form.name', 'Peter');
    setTimeout(() => $('button').click(), 500);
</script>
```

### format:format

Type: `command`

Formatiert eine Zahl oder ein Datum.

Eine Zahl legt die Dezimalstellen fest. Jeder andere Text ist ein Datumsformat.

Example: format verwenden
```html
<ui-bind path="form.price" config="text;format:2"></ui-bind>
<script>SET('form.price', 1250);</script>
```

### currency:name

Type: `command`

Formatiert eine Zahl mit einer Währung.

Der Name verweist auf eine Funktion in `DEF.currencies`.

Example: currency verwenden
```html
<ui-bind path="form.price" config="text;currency:eur"></ui-bind>
<script>
    DEF.currencies.eur = value => value.format(2) + ' EUR';
    SET('form.price', 1250);
</script>
```

### helper:name[(arguments)]

Type: `command`

Wandelt die Ausgabe mit einem Tangular-Helper um.

Der Wert wird als erstes Argument an den Helper übergeben. Weitere Argumente kannst du in Klammern angeben.

Example: helper verwenden
```html
<ui-bind path="form.name" config="text;helper:wrap('*')"></ui-bind>
<script>
    Thelpers.wrap = (value, chars) => chars + value + chars;
    SET('form.name', 'Peter');
</script>
```

### empty[:text]

Type: `command`

Legt den Text für einen leeren Wert fest.

Ohne Wert verwendet der Befehl `DEF.empty`, also `---`.

Example: empty verwenden
```html
<ui-bind path="form.name" config="text;empty:Nothing"></ui-bind>
```

### default:expression

Type: `command`

Ersetzt `null` und `undefined` durch einen Wert.

Der Wert ist ein JavaScript-Ausdruck. Auch der Kurzname `def` funktioniert.

Example: default verwenden
```html
<ui-bind path="form.name" config="text;default:'Anonymous'"></ui-bind>
```

### selector:selector

Type: `command`

Wendet alle Befehle auf die passenden Nachfahren an.

Example: selector verwenden
```html
<ui-bind path="form.name" config="selector:b;text">
    <b></b><b></b>
</ui-bind>
<script>SET('form.name', 'Peter');</script>
```

### assign:path

Type: `command`

Schreibt das jQuery-Element in einen Path.

Example: assign verwenden
```html
<ui-bind id="box" path="form.name" config="assign:common.box;text"></ui-bind>
<script>
    setTimeout(() => console.log(GET('common.box').attr('id')), 500);  // box
</script>
```

### check:path

Type: `command`

Führt die Befehle nur aus, wenn eine Bedingung erfüllt ist.

Der Wert ist ein Path zu einem truthy Wert oder `plugin/method`, das `value`, `path` und `el` erhält.

Example: check verwenden
```html
<ui-bind path="form.name" config="check:form.ready;text">Waiting</ui-bind>
<script>SET('form.name', 'Peter');</script>
```

### delay:milliseconds

Type: `command`

Verzögert die Aktualisierung um eine Anzahl von Millisekunden.

Wiederholte Aktualisierungen innerhalb der Verzögerung laufen nur einmal.

Example: delay verwenden
```html
<ui-bind path="form.name" config="delay:500;text"></ui-bind>
<script>
    SET('form.name', 'Peter');
    setTimeout(() => console.log($('ui-bind').text() || 'empty'), 200);  // empty
    setTimeout(() => console.log($('ui-bind').text()), 1100);  // Peter
</script>
```

### strict

Type: `command`

Ignoriert Änderungen an verschachtelten Paths.

Die Befehle laufen nur, wenn sich der Path selbst oder einer seiner übergeordneten Paths ändert.

Example: strict verwenden
```html
<ui-bind path="form.user" config="strict;exec:common.update"></ui-bind>
<script>
    window.common = { update: (value, path) => console.log(path) };
    SET('form.user', { name: 'Peter' });
    setTimeout(() => SET('form.user.name', 'Anna'), 500);
</script>
```

### track:field1,field2

Type: `command`

Führt die Befehle nur für ausgewählte verschachtelte Felder aus.

Trenne mehrere Felder durch ein Komma.

Example: track verwenden
```html
<ui-bind path="form.user" config="track:name;exec:common.update"></ui-bind>
<script>
    window.common = { update: (value, path) => console.log(path) };
    SET('form.user', { name: 'Peter', age: 20 });
    setTimeout(() => SET('form.user.age', 21), 500);
    setTimeout(() => SET('form.user.name', 'Anna'), 700);
</script>
```

### tracktype:type1,type2

Type: `command`

Führt die Befehle nur für ausgewählte Aktualisierungstypen aus.

Trenne mehrere Typen durch ein Komma.

Example: tracktype verwenden
```html
<ui-bind path="form.age" config="tracktype:2;exec:common.update"></ui-bind>
<script>
    window.common = { update: value => value && console.log(value) };
    setTimeout(() => SET('form.age', 10, 1), 500);
    setTimeout(() => SET('form.age', 20, 2), 700);
</script>
```

### changes

Type: `command`

Überspringt die Befehle, wenn sich der Wert nicht geändert hat.

Der Wert wird anhand eines Hashs verglichen.

Example: changes verwenden
```html
<ui-bind path="form.age" config="changes;exec:common.update"></ui-bind>
<script>
    window.common = { update: value => value && console.log(value) };
    setTimeout(() => SET('form.age', 10), 500);
    setTimeout(() => UPD('form.age'), 700);
</script>
```

### ready

Type: `command`

Wartet auf die im Element verschachtelten Komponenten.

Die Befehle laufen, sobald alle verschachtelten Komponenten bereit sind.

Example: ready verwenden
```html
<ui-bind path="form.name" config="ready;exec:common.update">
    <ui-component name="box"></ui-component>
</ui-bind>
<script>
    window.common = { update: () => console.log(FIND('box') ? 'found' : 'missing') };  // found
    COMPONENT('box', function(self) {});
</script>
```

### once

Type: `command`

Führt die Befehle nur ein einziges Mal aus.

Example: once verwenden
```html
<ui-bind path="form.name" config="once;text"></ui-bind>
<script>
    SET('form.name', 'Peter');
    setTimeout(() => SET('form.name', 'Anna'), 700);
</script>
```

### focus:selector

Type: `command`

Setzt nach jeder Aktualisierung den Fokus auf ein Feld.

Der Wert ist ein Selektor für Nachfahren.

Example: Ein Feld fokussieren
```html
<ui-bind path="form.name" config="focus:input">
    <input />
</ui-bind>
<script>
    SET('form.name', 'Peter');
</script>
```

### resize

Type: `command`

Ruft nach jeder Aktualisierung die Methode `resize` der verschachtelten Komponenten auf.

Example: resize verwenden
```html
<ui-bind path="form.name" config="resize">
    <ui-component name="box"></ui-component>
</ui-bind>
<script>
    COMPONENT('box', function(self) {
        self.resize = () => console.log('resized');  // resized
    });
    setTimeout(() => SET('form.name', 'Peter'), 500);
</script>
```

### binder.refresh()

Type: `method`

Führt die Befehle erneut mit dem aktuellen Wert des Paths aus.

Der Binder steht als `element.ui` oder über `$(element).binder()` zur Verfügung.

Example: Einen Binder aktualisieren
```js
var binder = $('ui-bind').binder();
window.form.name = 'Anna';
binder.refresh();
console.log($('ui-bind').text());  // Anna
```

### binder.exec(value, path)

Type: `method`

Führt die Befehle mit einem eigenen Wert aus.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `Object` | yes |  | Der an die Befehle übergebene Wert. |
| `path` | `String` | yes |  | Der an die Befehle übergebene Path. |

Der Wert wird nicht in das Datenmodell geschrieben.

Example: Die Befehle mit einem Wert ausführen
```js
var binder = $('ui-bind').binder();
binder.exec('Preview', 'form.name');
console.log($('ui-bind').text(), GET('form.name'));  // Preview Peter
```
