mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
Merge branch 'master' of github.com:flynx/ImageGrid
This commit is contained in:
commit
9f8564494c
@ -214,10 +214,13 @@ requirejs([
|
|||||||
make.nest(make.Heading('$Predefined Items'), [
|
make.nest(make.Heading('$Predefined Items'), [
|
||||||
make('Normal item'),
|
make('Normal item'),
|
||||||
make.Heading('Heading'),
|
make.Heading('Heading'),
|
||||||
|
make.Empty({doc: 'Empty item...'}),
|
||||||
|
//make.Separator({doc: 'Separator..'}),
|
||||||
|
//make.Spinner({doc: 'Spinner...'}),
|
||||||
|
//make.Editable(),
|
||||||
make.Confirm('Confirm',
|
make.Confirm('Confirm',
|
||||||
function(){ console.log('confirm') },
|
function(){ console.log('confirm') },
|
||||||
function(){ console.log('reject') }),
|
function(){ console.log('reject') }),
|
||||||
make.Empty({doc: 'Empty item...'}),
|
|
||||||
])
|
])
|
||||||
// filed demo...
|
// filed demo...
|
||||||
make.nest(make.Heading('$Fields'), [
|
make.nest(make.Heading('$Fields'), [
|
||||||
@ -235,7 +238,7 @@ requirejs([
|
|||||||
doc: 'Shows the value of .doc/.alt item attr...',
|
doc: 'Shows the value of .doc/.alt item attr...',
|
||||||
}),
|
}),
|
||||||
])
|
])
|
||||||
make.nest(make.Heading('Nesting test...'), [
|
make.nest(make.Heading('Nesting test...', {collapsed: true}), [
|
||||||
make.nest('A', [
|
make.nest('A', [
|
||||||
make('B'),
|
make('B'),
|
||||||
make('C'),
|
make('C'),
|
||||||
@ -375,14 +378,9 @@ $(function(){
|
|||||||
<div class="container tree">
|
<div class="container tree">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container flat">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container flat2">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container pathlist">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<pre style="position: absolute; display: block; top: 0; right: 0; width: 50%; ">
|
<pre style="position: absolute; display: block; top: 0; right: 0; width: 50%; ">
|
||||||
@ -400,6 +398,14 @@ $(function(){
|
|||||||
- now everything is working but buttons are not drawn
|
- now everything is working but buttons are not drawn
|
||||||
- who is responsible for drawing? ...parent or child?
|
- who is responsible for drawing? ...parent or child?
|
||||||
...this might be related to the above issue (case #2)
|
...this might be related to the above issue (case #2)
|
||||||
|
- is this overcomplicated???
|
||||||
|
...can the core be simpler and more modular?
|
||||||
|
should investigate <i>after</i> the main functionality is implemented
|
||||||
|
<i>NOTE: the actual LOC count is 2727 at this point in time (20200327)
|
||||||
|
so what's bugging me from time to time is not the code bloat but
|
||||||
|
rather doc bloat...
|
||||||
|
...but I'm not saying that there's no code bloat, though it's not
|
||||||
|
as big as I fear =)</i>
|
||||||
|
|
||||||
|
|
||||||
<b>ToDo:</b>
|
<b>ToDo:</b>
|
||||||
@ -408,6 +414,7 @@ $(function(){
|
|||||||
- interactive path element...
|
- interactive path element...
|
||||||
- search -- flat/deep
|
- search -- flat/deep
|
||||||
- migrate constructors from browse.js...
|
- migrate constructors from browse.js...
|
||||||
|
- refactor/revise...
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|||||||
@ -319,6 +319,10 @@ object.mixinFlat(function(){}, {
|
|||||||
// ...
|
// ...
|
||||||
// ])
|
// ])
|
||||||
//
|
//
|
||||||
|
// XXX should options.collapsed and friends be set in item or in
|
||||||
|
// options???
|
||||||
|
// ...options does not work but seems obvious...
|
||||||
|
// XXX BUG???
|
||||||
nest: function(item, list, options){
|
nest: function(item, list, options){
|
||||||
options = Object.flatCopy(options || {})
|
options = Object.flatCopy(options || {})
|
||||||
//options = Object.assign(Object.create(this.options || {}), options || {})
|
//options = Object.assign(Object.create(this.options || {}), options || {})
|
||||||
@ -396,7 +400,6 @@ object.mixinFlat(function(){}, {
|
|||||||
Item: function(value, options){
|
Item: function(value, options){
|
||||||
return this(...arguments) },
|
return this(...arguments) },
|
||||||
|
|
||||||
// XXX ???
|
|
||||||
Empty: function(options){
|
Empty: function(options){
|
||||||
return this('', options) },
|
return this('', options) },
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user