/**
* @class   AppFilesmanagerModel
* @extends GuiPanelModel
*/
var AppFilesmanagerModel = GuiPanelModel.extend(
{
    /**
    * Panel target id.
    *
    * @protected
    * @property target
    * @type     {String}
    * @default  'columnOne'
    */
    target: 'columnOne',

    /**
    * Panel position index.
    *
    * @protected
    * @property index
    * @type     {Integer}
    * @default  0
    */
    index: 0,

    /**
    * Model setup.
    *
    * Called by GuiModule, immediately after Module create().
    *
    * @method setup
    * @return {Mixed}
    */
    setup: function() {
        this.color('blue');
        this.icon('files-o');

        this.files = ko.observableArray();
    },

    /**
    * Called after template is rendered.
    *
    * @event afterRender
    * @param {Array}     elements
    * @param {GuiModule} self
    */
    loadFile: function(elements, self) {

    },

    /**
    * Called after template is rendered.
    *
    * @event afterRender
    * @param {Array}     elements
    * @param {GuiModule} self
    */
    afterRender: function(elements, self) {

    }
});

@@ -670,16 +670,20 @@
 s.files 
+    
 = ko.obs
@@ -706,204 +706,161 @@
     
-%7D,%0A%0A    /**%0A    * Called after template is rendered.
+    this.fileInput = this.module.getModel('GuiFileinput');%0A
 %0A    
-*%0A
     
-* @event afterRender%0A    * @param %7BArray%7D     elements%0A    * @param %7BGuiModule%7D self
+this.fileInput.onChange = function(files) %7B%0A            console.log(files);
 %0A    
-*/%0A
     
-loadFile: function(elements, self) %7B%0A
+%7D
 %0A   

use fileinput model