46 #include <Wt/WComboBox.h> 48 #include "FieldDefComboBox.h" 81 std::unique_ptr<Wt::WWidget> Wtx::Dbo::FieldDefComboBox::createEditWidget(
int sid,
Wtx::Dbo::Session & session )
const 84 std::make_unique<Wt::WComboBox>();
86 retVal-> setNoSelectionEnabled( m_noSelectionEnabled );
88 for(
auto item : m_items )
89 retVal-> addItem( item );
94 void Wtx::Dbo::FieldDefComboBox::addItem(
const std::string & text )
96 m_items.push_back( text );
99 void Wtx::Dbo::FieldDefComboBox::setNoSelectionEnabled(
bool value )
101 m_noSelectionEnabled = value;
Flags
Field Definition Flags.
FieldDefComboBox(TableDef &td, const char *fn, int w=-1, int h=-1, Flags f=Flags::None, std::string lb="", std::string ph="", std::string inf="", std::string tt="", int ht=-1)
ctor