Skip to content

Instantly share code, notes, and snippets.

@augustine-tran
Created June 27, 2014 03:34
Show Gist options
  • Save augustine-tran/39e77e81e29c9d5ac302 to your computer and use it in GitHub Desktop.
Save augustine-tran/39e77e81e29c9d5ac302 to your computer and use it in GitHub Desktop.
PhalconEye how widget work
// notice $(function () {
(function (window, $, root, undefined) {
$(function () {
root.ns(
'PhalconEye.widget.autocomplete',
{
/**
* Init autocomplete.
*
* @param element Element object.
*/
init: function (element) {
}
}
);
});
}(window, jQuery, PhalconEye));
function _initSystem() {
PhalconEye.widget.init();
PhalconEye.form.init();
///.........
}
(function (window, $, root, undefined) {
root.ns(
'PhalconEye.widget.dualListBox',
{
/**
* Init autocomplete.
*
* @param element Element object.
*/
init: function (element) {
element.bootstrapDualListbox({
});
}
}
);
}(window, jQuery, PhalconEye));
// 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