mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:42:43 +00:00 
			
		
		
		
	 b65e711929
			
		
	
	
		b65e711929
		
	
	
	
	
		
			
			Add a new widget "DynamicWidgetContainer" that is used to group it's child widgets within an collapsable and detachable container. The DynmnicWidgetContainer is able to persist it's view state if a config domain has been provided. Having that set will allow the widget to restore it's view state automatically.
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			879 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			879 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| @GUI::DynamicWidgetContainerControls {
 | |
|     layout: @GUI::HorizontalBoxLayout {}
 | |
|     preferred_height: "shrink"
 | |
| 
 | |
|     @GUI::LabelWithEventDispatcher {
 | |
|         name: "section_label"
 | |
|         text_alignment: "CenterLeft"
 | |
|     }
 | |
| 
 | |
|     @GUI::Button {
 | |
|         name: "detach_button"
 | |
|         button_style: "Coolbar"
 | |
|         preferred_width: "shrink"
 | |
|         preferred_height: "shrink"
 | |
|         icon_from_path: "/res/icons/16x16/detach.png"
 | |
|     }
 | |
| 
 | |
|     @GUI::Button {
 | |
|         name: "collapse_button"
 | |
|         button_style: "Coolbar"
 | |
|         preferred_width: "shrink"
 | |
|         preferred_height: "shrink"
 | |
|         icon_from_path: "/res/icons/16x16/upward-triangle.png"
 | |
|     }
 | |
| 
 | |
|     @GUI::Button {
 | |
|         name: "expand_button"
 | |
|         button_style: "Coolbar"
 | |
|         preferred_width: "shrink"
 | |
|         preferred_height: "shrink"
 | |
|         icon_from_path: "/res/icons/16x16/downward-triangle.png"
 | |
|     }
 | |
| }
 |