Created
June 27, 2014 03:34
-
-
Save augustine-tran/39e77e81e29c9d5ac302 to your computer and use it in GitHub Desktop.
PhalconEye how widget work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// notice $(function () { | |
(function (window, $, root, undefined) { | |
$(function () { | |
root.ns( | |
'PhalconEye.widget.autocomplete', | |
{ | |
/** | |
* Init autocomplete. | |
* | |
* @param element Element object. | |
*/ | |
init: function (element) { | |
} | |
} | |
); | |
}); | |
}(window, jQuery, PhalconEye)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _initSystem() { | |
PhalconEye.widget.init(); | |
PhalconEye.form.init(); | |
///......... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window, $, root, undefined) { | |
root.ns( | |
'PhalconEye.widget.dualListBox', | |
{ | |
/** | |
* Init autocomplete. | |
* | |
* @param element Element object. | |
*/ | |
init: function (element) { | |
element.bootstrapDualListbox({ | |
}); | |
} | |
} | |
); | |
}(window, jQuery, PhalconEye)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// define and usage | |
$this->addSelect('users[]', 'Users', null, $arrUsers, null, ['using' => ['id', '__getFullName']], ['data-widget'=>"dualListBox", 'multiple'=> 'true']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment