# j-UIEditor

> Aprire UI Builder e ricevere disegni salvati.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: it
Content-SHA256: e1a1e0ce2e02296f1d746e40b456b888ab2a7d0874f8ba377bf14d0b669ff937
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: usage-reviewed

Il componente apre UI Builder in un iframe. collegare la sua strada ad un oggetto che contiene il design e gli appuntamenti per salvare, pubblicare o prevedere.

Il componente apre il UI Builder nell'ipramma.

- UI Builder editor repository <https://github.com/totaljs/uibuilder> (se non si desidera utilizzare la versione cloud)

__Configurazione__:

- `url {String}` un collegamento al UI Builder (default: `https://uibuilder.totaljs.com`)
- Preparazione di `top {Number}`: `0`
- Preparazione di `left {Number}`: `0`
- Preparazione di `right {Number}`: `0`
- Preparazione di `bottom {Number}`: `0`
- Preparazione di `zindex {Number}`: `30`
- `language {String}` standard: `eu` (in inglese)
- `onsave {String}` opzionale, un collegamento a `function(data)`
- `onpublish {String}` opzionale, un collegamento a `function(data)`
- `onrender {String}` opzionale, un collegamento a `function(data)`
- Preparazione di `closebutton {Boolean}`: `true`

__Il modello__:

```js
{
	data: { .. UI BUILDER DESIGN .. },
	upload: 'https://.../upload/', // optional
	groups: [{ id: 'group1', name: 'Group 1' }], // optional
	apps: [{ id: 'app1', name: 'App 1' }], // optional
	views: [{ id: 'view1', name: 'View 1' }], // optional
	close: function() {}, // optional, it's executed when the editor is closed
	save: function(data) {}, // optional, it's executed when the user saves design
	publish: function(data) {}, // optional, it's executed when the user compiles design
	render: function(data) {}, // optional, it's executed when the user wants to preview a design
}
```

## Utilizzo

```html
<ui-component name="uieditor" path="editor.current"></ui-component>
<script>
  function openDesign(design) {
    SET('editor.current', {
      data: design,
      save: function(updatedDesign) {
        SET('form.design', updatedDesign);
      }
    });
  }
</script>
```

La fonte: [Componenti di Total.js](https://github.com/totaljs/components/tree/910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e/j-UIEditor)Copyright Peter Širka e contribuenti. [La mia licenza](/knowledge-licenses.json).
