... | ... | @@ -42,11 +42,14 @@ QUI bindet das Control auf zwei verschiedene Wege ein, ist der Inhalt des HTML E |
|
|
</div>
|
|
|
```
|
|
|
|
|
|
Das JavaScript Control kann auf diese zwei Methoden über Events reagieren. *onInject*, *onImport* oder *onCreate*.
|
|
|
Das JavaScript Control kann mit verschiedenen Events während der Erstellung reagieren.
|
|
|
|
|
|
Events: *onInject*, *onImport*
|
|
|
Methoden: create()
|
|
|
|
|
|
```javascript
|
|
|
|
|
|
// onInject beispiel
|
|
|
// onInject Beispiel
|
|
|
|
|
|
define([ 'qui/controls/Control' ], function(QUIControl)
|
|
|
{
|
... | ... | @@ -74,9 +77,8 @@ define([ 'qui/controls/Control' ], function(QUIControl) |
|
|
*/
|
|
|
$onInject : function()
|
|
|
{
|
|
|
this.$Elm = new Element('div');
|
|
|
|
|
|
return this.$Elm;
|
|
|
// control DOMNode Element
|
|
|
this.$Elm;
|
|
|
}
|
|
|
});
|
|
|
|
... | ... | |