diff --git a/ui (gen4)/lib/widget/browse2.html b/ui (gen4)/lib/widget/browse2.html index abd82149..07de1955 100755 --- a/ui (gen4)/lib/widget/browse2.html +++ b/ui (gen4)/lib/widget/browse2.html @@ -214,10 +214,13 @@ requirejs([ make.nest(make.Heading('$Predefined Items'), [ make('Normal item'), make.Heading('Heading'), + make.Empty({doc: 'Empty item...'}), + //make.Separator({doc: 'Separator..'}), + //make.Spinner({doc: 'Spinner...'}), + //make.Editable(), make.Confirm('Confirm', function(){ console.log('confirm') }, function(){ console.log('reject') }), - make.Empty({doc: 'Empty item...'}), ]) // filed demo... make.nest(make.Heading('$Fields'), [ @@ -235,7 +238,7 @@ requirejs([ 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('B'), make('C'), @@ -375,14 +378,9 @@ $(function(){
-
-
-
-
-
-
+
@@ -400,6 +398,14 @@ $(function(){
                 - now everything is working but buttons are not drawn
 - who is responsible for drawing? ...parent or child?
     ...this might be related to the above issue (case #2)
+- is this overcomplicated???
+    ...can the core be simpler and more modular?
+    should investigate after the main functionality is implemented
+    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 =)
 
 
 ToDo:
@@ -408,6 +414,7 @@ $(function(){
 - interactive path element...
 - search -- flat/deep
 - migrate constructors from browse.js...
+- refactor/revise...
 
 
diff --git a/ui (gen4)/lib/widget/browse2.js b/ui (gen4)/lib/widget/browse2.js index 87c80be6..1b4826af 100755 --- a/ui (gen4)/lib/widget/browse2.js +++ b/ui (gen4)/lib/widget/browse2.js @@ -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){ options = Object.flatCopy(options || {}) //options = Object.assign(Object.create(this.options || {}), options || {}) @@ -396,7 +400,6 @@ object.mixinFlat(function(){}, { Item: function(value, options){ return this(...arguments) }, - // XXX ??? Empty: function(options){ return this('', options) },