MCPcopy Create free account
hub / github.com/AshampooSystems/boden / createScrollPage

Method createScrollPage

examples/KeyboardTest/source/MainViewController.cpp:85–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85std::shared_ptr<bdn::ui::View> MainViewController::createScrollPage()
86{
87 auto scrollView = std::make_shared<bdn::ui::ScrollView>();
88 scrollView->stylesheet = FlexJsonStringify({"flexGrow" : 1});
89
90 auto btn = std::make_shared<bdn::ui::Button>();
91 btn->label = "NavigationView Test";
92 btn->onClick() += [this](auto) { _window->contentView = createNavPage(); };
93
94 auto content = createContent(50, btn);
95 scrollView->contentView = content;
96
97 return scrollView;
98}

Callers

nothing calls this directly

Calls 1

onClickMethod · 0.45

Tested by

no test coverage detected