mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	demos/tests...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									06b6e15b91
								
							
						
					
					
						commit
						226a397f3b
					
				| @ -1634,6 +1634,12 @@ var WidgetTestActions = actions.Actions({ | |||||||
| 				make.Heading(' Editable list:') | 				make.Heading(' Editable list:') | ||||||
| 				make.EditableList(editable_list) | 				make.EditableList(editable_list) | ||||||
| 
 | 
 | ||||||
|  | 				make.Heading('More:') | ||||||
|  | 				make.Action('Editable list demos...') | ||||||
|  | 					.on('open', function(){ actions.testList() }) | ||||||
|  | 				make.Action('Pinned list demo...') | ||||||
|  | 					.on('open', function(){ actions.testPinnedList() }) | ||||||
|  | 
 | ||||||
| 				// NOTE: the dialog's .parent is not yet set at this point...
 | 				// NOTE: the dialog's .parent is not yet set at this point...
 | ||||||
| 
 | 
 | ||||||
| 				// This will finalize the dialog...
 | 				// This will finalize the dialog...
 | ||||||
|  | |||||||
| @ -587,6 +587,8 @@ function(list, options){ | |||||||
| 				// NOTE: this is necessary as not everything we do with lst
 | 				// NOTE: this is necessary as not everything we do with lst
 | ||||||
| 				// 		is in-place...
 | 				// 		is in-place...
 | ||||||
| 				: list.splice.apply(list, [0, list.length].concat(lst)))  | 				: list.splice.apply(list, [0, list.length].concat(lst)))  | ||||||
|  | 					// we need to return the list itself...
 | ||||||
|  | 					&& lst | ||||||
| 			// in case the list(..) returns nothing...
 | 			// in case the list(..) returns nothing...
 | ||||||
| 			|| lst | 			|| lst | ||||||
| 	} | 	} | ||||||
| @ -814,9 +816,8 @@ function(list, options){ | |||||||
| 							: undefined) | 							: undefined) | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				lst = write(list, lst) | 				lst = dialog.__list[id] = write(list, lst) | ||||||
| 
 | 
 | ||||||
| 				dialog.__list[id] = lst |  | ||||||
| 
 | 
 | ||||||
| 				// update list and select new value...
 | 				// update list and select new value...
 | ||||||
| 				dialog.update() | 				dialog.update() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user