Skip to content

Updating table in real-time #568

Answered by ArthurSonzogni
yyhay asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @yyhay.
Here is an example:

video
https://user-images.githubusercontent.com/4759106/217115885-1964a418-a865-43b3-849d-1724df9e6fe4.mp4

code

#include <memory> 
#include <string> 

#include "ftxui/component/captured_mouse.hpp"  
#include "ftxui/component/component.hpp"  
#include "ftxui/component/component_base.hpp"      
#include "ftxui/component/screen_interactive.hpp"  
#include "ftxui/dom/elements.hpp"  
#include "ftxui/dom/table.hpp"

using namespace ftxui;

int main(int argc, const char* argv[]) {

  std::string value_1;
  std::string value_2;
  std::string value_3;
  std::string value_4;

  auto input_1 = Input(value_1, "input_1");
  auto input_2 = Input(value_2, "input_2");
  a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yyhay
Comment options

@InnocentZero
Comment options

Answer selected by ArthurSonzogni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants