forked from bago/knockout-jqueryui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gvas#61 - Add support for jQuery UI 1.12.
Add custom.combobox widget from jquery-ui.com Autocomplete example. Add CommonJS support. Signed-off-by: Jonathan Horowitz <jhorowitz@firedrum.com>
- Loading branch information
1 parent
bd3b410
commit 9455d9f
Showing
42 changed files
with
437 additions
and
173 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/*jshint strict: false */ | ||
/*global define*/ | ||
define( | ||
|
||
[ | ||
'./bindingHandler', | ||
'./utils', | ||
'jquery-ui/checkboxradio' | ||
], | ||
|
||
function (BindingHandler, utils) { | ||
|
||
var Checkboxradio = function () { | ||
/// <summary>Constructor.</summary> | ||
|
||
BindingHandler.call(this, 'checkboxradio'); | ||
|
||
this.options = ['classes', 'disabled', 'icon', 'label']; | ||
this.events = ['create']; | ||
if (utils.uiVersion.major === 1 && (utils.uiVersion.minor >= 8 && utils.uiVersion.minor <= 11)) { | ||
this.options.push('icons'); | ||
this.options.push('text'); | ||
} else { | ||
this.options.push('classes'); | ||
this.options.push('icon'); | ||
this.options.push('iconPosition'); | ||
this.options.push('showLabel'); | ||
} | ||
this.hasRefresh = true; | ||
}; | ||
|
||
Checkboxradio.prototype = utils.createObject(BindingHandler.prototype); | ||
Checkboxradio.prototype.constructor = Checkboxradio; | ||
|
||
utils.register(Checkboxradio); | ||
|
||
return Checkboxradio; | ||
} | ||
); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*jshint strict: false */ | ||
/*global define*/ | ||
define( | ||
|
||
[ | ||
'./bindingHandler', | ||
'./utils', | ||
'jquery-ui/controlgroup' | ||
], | ||
|
||
function (BindingHandler, utils) { | ||
|
||
var Controlgroup = function () { | ||
/// <summary>Constructor.</summary> | ||
|
||
BindingHandler.call(this, 'controlgroup'); | ||
|
||
this.options = ['classes', 'direction', 'disabled', 'items', 'onlyVisible']; | ||
this.events = ['create']; | ||
this.hasRefresh = true; | ||
}; | ||
|
||
Controlgroup.prototype = utils.createObject(BindingHandler.prototype); | ||
Controlgroup.prototype.constructor = Controlgroup; | ||
|
||
utils.register(Controlgroup); | ||
|
||
return Controlgroup; | ||
} | ||
); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*jshint strict: false */ | ||
/*global define*/ | ||
define( | ||
|
||
[ | ||
'./bindingHandler', | ||
'./utils', | ||
'jquery-ui/autocomplete', | ||
'jquery-ui/button', | ||
'jquery-ui/tooltip' | ||
], | ||
|
||
function (BindingHandler, utils) { | ||
|
||
var CustomCombobox = function () { | ||
/// <summary>Constructor.</summary> | ||
|
||
BindingHandler.call(this, 'combobox'); | ||
|
||
this.options = ['removeIfInvalid', 'buttonTooltip']; | ||
this.events = []; | ||
}; | ||
|
||
CustomCombobox.prototype = utils.createObject(BindingHandler.prototype); | ||
CustomCombobox.prototype.constructor = CustomCombobox; | ||
|
||
utils.register(CustomCombobox); | ||
|
||
return CustomCombobox; | ||
} | ||
); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.