24#ifndef HTML_FORM_SELECT_HPP
25#define HTML_FORM_SELECT_HPP
49#include "html_form_radio.hpp"
50#include "html_label.hpp"
55 static const std::string changed;
63 html_form_select(
const std::string & label,
const std::string & x_event_name =
"");
81 virtual void on_event(
const std::string & x_event_name)
override {
act(event_name); };
84 unsigned int size()
const {
return get_choices().size(); };
89 const std::string &
get_id(
unsigned int index)
const {
return get_choices()[index].id; };
94 const std::string &
get_label(
unsigned int index)
const {
return get_choices()[index].label.get_label(); };
111 std::string event_name;
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
void my_body_part_has_changed()
let a class record a change in what inherited_get_body_part() would return if it was called again wit...
Definition: body_builder.cpp:420
class chemin definition
Definition: chemin.hpp:51
void act(const std::string &name)
trigger a given event
Definition: events.cpp:151
class html_label implements label and tooltips (helper string showing when mouse hovering)
Definition: html_label.hpp:47
void set_label(const std::string &val)
change the label value from the value provided at construction time
Definition: html_label.hpp:62
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45