mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
docs and minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d431807da0
commit
c9f30c2234
@ -3580,14 +3580,34 @@ var HTMLBrowserPrototype = {
|
|||||||
options: {
|
options: {
|
||||||
__proto__: BaseBrowser.prototype.options,
|
__proto__: BaseBrowser.prototype.options,
|
||||||
|
|
||||||
|
// Default header/footer generators...
|
||||||
|
//
|
||||||
|
// These are the Item.<generator> to use when the user does not
|
||||||
|
// manually set a header/footer.
|
||||||
|
//
|
||||||
|
// If set to null, no corresponding header/footer will be created
|
||||||
|
// automatically.
|
||||||
|
//
|
||||||
|
// NOTE: changing these on the fly would require both clearing
|
||||||
|
// the cache and an update, i.e.:
|
||||||
|
// dialog.options.defaultFooter = 'DisplayItemInfo'
|
||||||
|
// dialog
|
||||||
|
// .clearCache()
|
||||||
|
// .update(true)
|
||||||
defaultHeader: 'DisplayFocusedPath',
|
defaultHeader: 'DisplayFocusedPath',
|
||||||
//defaultFooter: 'DisplayItemInfo',
|
//defaultFooter: 'DisplayItemInfo',
|
||||||
|
|
||||||
// for more docs see:
|
// If true hide header/footer...
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
|
|
||||||
//
|
//
|
||||||
// XXX 'smooth' value yields odd results...
|
// NOTE: these will prevent rendering of the corresponding
|
||||||
//scrollBehavior: 'auto',
|
// header/footer but their data will still be made and
|
||||||
|
// potentially updated...
|
||||||
|
hideListHeader: false,
|
||||||
|
hideListFooter: false,
|
||||||
|
|
||||||
|
// If true render hidden elements...
|
||||||
|
//
|
||||||
|
renderHidden: false,
|
||||||
|
|
||||||
// Sets the distance between the focused element and top/bottom
|
// Sets the distance between the focused element and top/bottom
|
||||||
// border while moving through elements...
|
// border while moving through elements...
|
||||||
@ -3596,10 +3616,36 @@ var HTMLBrowserPrototype = {
|
|||||||
// ...i.e. about half of the average element height...
|
// ...i.e. about half of the average element height...
|
||||||
focusOffsetWhileScrolling: 18,
|
focusOffsetWhileScrolling: 18,
|
||||||
|
|
||||||
hideListHeader: false,
|
// for more docs see:
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
|
||||||
|
//
|
||||||
|
// XXX 'smooth' value yields odd results...
|
||||||
|
//scrollBehavior: 'auto',
|
||||||
|
|
||||||
renderHidden: false,
|
|
||||||
|
|
||||||
|
itemTemplate: {
|
||||||
|
__proto__: (BaseBrowser.prototype.options || {}).itemTemplate || {},
|
||||||
|
|
||||||
|
' ': {
|
||||||
|
'class': 'separator',
|
||||||
|
'html': '<div/>',
|
||||||
|
noniterable: true,
|
||||||
|
},
|
||||||
|
'---': {
|
||||||
|
'class': 'separator',
|
||||||
|
'html': '<hr>',
|
||||||
|
noniterable: true,
|
||||||
|
},
|
||||||
|
'...': {
|
||||||
|
'class': 'separator',
|
||||||
|
'html': '<center><div class="loader"/></center>',
|
||||||
|
noniterable: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// events not to bubble up the tree...
|
||||||
|
//
|
||||||
localEvents: [
|
localEvents: [
|
||||||
// XXX STUB???
|
// XXX STUB???
|
||||||
'click',
|
'click',
|
||||||
@ -3613,6 +3659,8 @@ var HTMLBrowserPrototype = {
|
|||||||
//buttonLocalEvents: [
|
//buttonLocalEvents: [
|
||||||
//],
|
//],
|
||||||
|
|
||||||
|
// Default buttons for header/items/footer sections...
|
||||||
|
//
|
||||||
// Format:
|
// Format:
|
||||||
// [
|
// [
|
||||||
// // basic button handler...
|
// // basic button handler...
|
||||||
@ -3647,46 +3695,32 @@ var HTMLBrowserPrototype = {
|
|||||||
// '<action>: <arg> .. -- comment'
|
// '<action>: <arg> .. -- comment'
|
||||||
// | <function>,
|
// | <function>,
|
||||||
//
|
//
|
||||||
// // force active (optional)...
|
// // force active on disabled items (optional)...
|
||||||
// bool
|
// bool
|
||||||
// | <function>,
|
// | <function>,
|
||||||
//
|
//
|
||||||
// // button metadata (optional)...
|
// // button metadata (optional)...
|
||||||
// <metadata>,
|
// {
|
||||||
|
// cls: <css-class>,
|
||||||
|
// alt: <string>,
|
||||||
|
// keys: <key> | [ <key>, ... ],
|
||||||
|
// ...
|
||||||
|
// },
|
||||||
// ],
|
// ],
|
||||||
//
|
//
|
||||||
// ...
|
// ...
|
||||||
// ]
|
// ]
|
||||||
itemButtons: [
|
//
|
||||||
],
|
|
||||||
// XXX TEST...
|
|
||||||
headerButtons: [
|
headerButtons: [
|
||||||
|
// XXX TEST...
|
||||||
['c', 'collapse: "*"'],
|
['c', 'collapse: "*"'],
|
||||||
['e', 'expand: "*"'],
|
['e', 'expand: "*"'],
|
||||||
],
|
],
|
||||||
|
itemButtons: [
|
||||||
|
],
|
||||||
footerButtons: [
|
footerButtons: [
|
||||||
],
|
],
|
||||||
|
|
||||||
itemTemplate: {
|
|
||||||
__proto__: (BaseBrowser.prototype.options || {}).itemTemplate || {},
|
|
||||||
|
|
||||||
' ': {
|
|
||||||
'class': 'separator',
|
|
||||||
'html': '<div/>',
|
|
||||||
noniterable: true,
|
|
||||||
},
|
|
||||||
'---': {
|
|
||||||
'class': 'separator',
|
|
||||||
'html': '<hr>',
|
|
||||||
noniterable: true,
|
|
||||||
},
|
|
||||||
'...': {
|
|
||||||
'class': 'separator',
|
|
||||||
'html': '<center><div class="loader"/></center>',
|
|
||||||
noniterable: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
// If true will disable button shortcut key handling...
|
// If true will disable button shortcut key handling...
|
||||||
//disableButtonSortcuts: false,
|
//disableButtonSortcuts: false,
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user