-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Widget: define a null default for the create callback.
- Loading branch information
1 parent
c4c36e5
commit 325ee6e
Showing
15 changed files
with
125 additions
and
121 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,15 +1,14 @@ | |||
/* | commonWidgetTests( "button", { | ||
* button_defaults.js | defaults: { | ||
*/ | disabled: null, | ||
icons: { | |||
primary: null, | |||
secondary: null | |||
}, | |||
label: null, | |||
text: true, | |||
|
|
||
var button_defaults = { | // callbacks | ||
disabled: null, | create: null | ||
text: true, | |||
label: null, | |||
icons: { | |||
primary: null, | |||
secondary: null | |||
} | } | ||
}; | }); | ||
|
|||
commonWidgetTests('button', { defaults: button_defaults }); |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,35 +1,34 @@ | |||
/* | commonWidgetTests( "dialog", { | ||
* dialog_defaults.js | defaults: { | ||
*/ | autoOpen: true, | ||
buttons: {}, | |||
closeOnEscape: true, | |||
closeText: 'close', | |||
disabled: false, | |||
dialogClass: '', | |||
draggable: true, | |||
height: 'auto', | |||
hide: null, | |||
maxHeight: false, | |||
maxWidth: false, | |||
minHeight: 150, | |||
minWidth: 150, | |||
modal: false, | |||
position: { | |||
my: 'center', | |||
at: 'center', | |||
of: window, | |||
collision: 'fit', | |||
using: $.ui.dialog.prototype.options.position.using | |||
}, | |||
resizable: true, | |||
show: null, | |||
stack: true, | |||
title: '', | |||
width: 300, | |||
zIndex: 1000, | |||
|
|
||
var dialog_defaults = { | // callbacks | ||
autoOpen: true, | create: null | ||
buttons: {}, | } | ||
closeOnEscape: true, | }); | ||
closeText: 'close', | |||
disabled: false, | |||
dialogClass: '', | |||
draggable: true, | |||
height: 'auto', | |||
hide: null, | |||
maxHeight: false, | |||
maxWidth: false, | |||
minHeight: 150, | |||
minWidth: 150, | |||
modal: false, | |||
position: { | |||
my: 'center', | |||
at: 'center', | |||
of: window, | |||
collision: 'fit', | |||
using: $.ui.dialog.prototype.options.position.using | |||
}, | |||
resizable: true, | |||
show: null, | |||
stack: true, | |||
title: '', | |||
width: 300, | |||
zIndex: 1000 | |||
}; | |||
|
|||
commonWidgetTests('dialog', { defaults: dialog_defaults }); |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,13 +1,12 @@ | |||
/* | commonWidgetTests( "menu", { | ||
* menu_defaults.js | defaults: { | ||
*/ | disabled: false, | ||
position: { | |||
my: "left top", | |||
at: "right top" | |||
}, | |||
|
|
||
var menu_defaults = { | // callbacks | ||
disabled: false, | create: null | ||
position: { | |||
my: "left top", | |||
at: "right top" | |||
} | } | ||
}; | }); | ||
|
|||
commonWidgetTests('menu', { defaults: menu_defaults }); |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,11 +1,10 @@ | |||
/* | commonWidgetTests( "progressbar", { | ||
* progressbar_defaults.js | defaults: { | ||
*/ | disabled: false, | ||
value: 0, | |||
max: 100, | |||
|
|
||
var progressbar_defaults = { | //callbacks | ||
disabled: false, | create: null | ||
value: 0, | } | ||
max: 100 | }); | ||
}; | |||
|
|||
commonWidgetTests('progressbar', { defaults: progressbar_defaults }); |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,20 +1,19 @@ | |||
/* | commonWidgetTests( "slider", { | ||
* slider_defaults.js | defaults: { | ||
*/ | animate: false, | ||
cancel: function() {}, | |||
delay: 0, | |||
disabled: false, | |||
distance: 0, | |||
max: 100, | |||
min: 0, | |||
orientation: 'horizontal', | |||
range: false, | |||
step: 1, | |||
value: 0, | |||
values: null, | |||
|
|
||
var slider_defaults = { | // callbacks | ||
animate: false, | create: null | ||
cancel: function() {}, | } | ||
delay: 0, | }); | ||
disabled: false, | |||
distance: 0, | |||
max: 100, | |||
min: 0, | |||
orientation: 'horizontal', | |||
range: false, | |||
step: 1, | |||
value: 0, | |||
values: null | |||
}; | |||
|
|||
commonWidgetTests('slider', { defaults: slider_defaults }); |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,16 +1,15 @@ | |||
/* | commonWidgetTests( "spinner", { | ||
* spinner_defaults.js | defaults: { | ||
*/ | disabled: false, | ||
incremental: true, | |||
max: null, | |||
min: null, | |||
numberformat: null, | |||
page: 10, | |||
step: null, | |||
value: null, | |||
|
|
||
var spinner_defaults = { | // callbacks | ||
disabled: false, | create: null | ||
incremental: true, | } | ||
max: null, | }); | ||
min: null, | |||
numberformat: null, | |||
page: 10, | |||
step: null, | |||
value: null | |||
}; | |||
|
|||
commonWidgetTests('spinner', { defaults: spinner_defaults }); |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,16 +1,15 @@ | |||
/* | commonWidgetTests( "tooltip", { | ||
* tooltip_defaults.js | defaults: { | ||
*/ | disabled: false, | ||
items: "[title]", | |||
content: $.ui.tooltip.prototype.options.content, | |||
position: { | |||
my: "left center", | |||
at: "right center", | |||
offset: "15 0" | |||
}, | |||
|
|
||
var tooltip_defaults = { | // callbacks | ||
disabled: false, | create: null | ||
items: "[title]", | |||
content: $.ui.tooltip.prototype.options.content, | |||
position: { | |||
my: "left center", | |||
at: "right center", | |||
offset: "15 0" | |||
} | } | ||
}; | }); | ||
|
|||
commonWidgetTests('tooltip', { defaults: tooltip_defaults }); |
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