# j-UIEditor

> Nyissa meg a UI Builder-et és kap mentett tervezéseket.

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

Az összetevő megnyitja a UI Builder-et az iframe-ben. köti az útját egy olyan objektumhoz, amely tartalmazza a tervezést és a hívásokat, hogy mentse, közzé vagy előre nézze meg.

Az összetevő megnyitja a UI Builder az ifrámban.

- UI Builder szerkesztő repository <https://github.com/totaljs/uibuilder> (ha nem szeretné használni a felhő verziót)

__konfiguráció__:

- `url {String}` egy link a UI Builder (default: `https://uibuilder.totaljs.com`)
- Az alapértelmezett `top {Number}`: `0`
- Az alapértelmezett `left {Number}`: `0`
- Az alapértelmezett `right {Number}`: `0`
- Az alapértelmezett `bottom {Number}`: `0`
- Az alapértelmezett `zindex {Number}`: `30`
- `language {String}` alapértelmezett: `eu` (angol)
- `onsave {String}` opcionális, link a `function(data)`
- `onpublish {String}` opcionális, link a `function(data)`
- `onrender {String}` opcionális, link a `function(data)`
- Az alapértelmezett `closebutton {Boolean}`: `true`

__modell__:

```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
}
```

## Használat

```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>
```

forrásból : [Total.js összetevők](https://github.com/totaljs/components/tree/910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e/j-UIEditor)Szerzői jog Peter Širka és hozzájárulók. [A licenc](/knowledge-licenses.json).
