mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Feature: the Modal component. (#418)
				
					
				
			This commit is contained in:
		| @@ -7,9 +7,9 @@ | ||||
| #include <utility>     // for forward | ||||
| #include <vector>      // for vector | ||||
|  | ||||
| #include "ftxui/component/component_base.hpp"     // for Component, Components | ||||
| #include "ftxui/component/component_options.hpp"  // for ButtonOption, CheckboxOption, InputOption (ptr only), MenuEntryOption (ptr only), MenuOption, RadioboxOption (ptr only) | ||||
| #include "ftxui/dom/elements.hpp"                 // for Element | ||||
| #include "ftxui/component/component_base.hpp"  // for Component, Components | ||||
| #include "ftxui/component/component_options.hpp"  // for ButtonOption, CheckboxOption, MenuOption | ||||
| #include "ftxui/dom/elements.hpp"  // for Element | ||||
| #include "ftxui/util/ref.hpp"  // for Ref, ConstStringRef, ConstStringListRef, StringRef | ||||
|  | ||||
| namespace ftxui { | ||||
| @@ -88,6 +88,9 @@ Component Maybe(Component, std::function<bool()>); | ||||
| ComponentDecorator Maybe(const bool* show); | ||||
| ComponentDecorator Maybe(std::function<bool()>); | ||||
|  | ||||
| Component Modal(Component main, Component modal, const bool* show_modal); | ||||
| ComponentDecorator Modal(Component modal, const bool* show_modal); | ||||
|  | ||||
| Component Collapsible(ConstStringRef label, | ||||
|                       Component child, | ||||
|                       Ref<bool> show = false); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur Sonzogni
					Arthur Sonzogni