# j-Click

> Il componente chiama un metodo o può impostare un valore in base al percorso.

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

Il componente chiama un metodo o può impostare un valore in base al percorso.

__Configurazione__:

- `enter` {String} (opzionale) è un selettore jQuery
- `value` {String/Number/Boolean} (opzionale) Questo valore sarà impostato a `data-jc-path`
- `disabled` {Boolean} disabilita questo controllo

Utilizzare con `<ui-component name="click">`Quando il componente non è ancora caricato, jComponent Scarica il codice in prima utilizzazione dall'indirizzo `DEF.fallback` (Il Componentator La storia di Peter Širka.Fonte: il Componentator Ristorante dei componenti, licenza MIT.

```html example.html
<div id="form">
    <div><input type="text" placeholder="press enter" /></div>
</div>
<div><button><ui-component name="click" path="doSubmit" config="enter:#form">SUBMIT</ui-component></button></div>
<br />
<div><button><ui-component name="click" path="user.name" config="value:Peter">SET VALUE user.name</ui-component></button></div>
<ui-bind path="user.name" config="text"></ui-bind>

<script>
	function doSubmit() {
        alert('SUBMIT');
    }
</script>
```
