3#include "../widgets/select.h"
12 static const char* name() {
return "Select"; }
41 extra().set(
"options",
new rbjson::String(out));
51 extra().set(
"selectedIndex",
new rbjson::Number(index));
std::function< void(gridui::Select &)> callback_t
void addCallback(const std::string &name, const callback_t &cb)
Select & options(const std::vector< std::string > &options)
Select & disabled(bool disabled)
Select & color(const std::string &color)
Select & background(const std::string &background)
Select & options(const std::string &options)
Select & selectedIndex(int index)
Select & onChanged(callback_t cb)