os_input_reset


An input reset button within a form.

An os_input_reset is a reset button within an os_form . When os_input_reset is selected, all input elements within the os_form are reset to their initial values.

An os_input_reset button is typically labeled "Reset" by default. A label value for the button can be specified either in the constructor or through the value() member function. This label value cannot be modified by the user.

Unlike other os_form input elements, an os_input_reset does not have a name and is not transmitted when the os_form is submitted.

Declaration

#include <ospace/web/inreset.h>
class os_input_reset : public os_element

Interface

Constructor
os_input_reset()
Constructs a generic input reset button.
Constructor
os_input_reset( const string& value )
Constructs an input reset button with button text value .
clone
/* virtual */ os_element* clone() const
Returns a base class pointer to a heap-based deep copy of the input reset button.
value
string value() const
Returns the button text, or the empty string if not set.
value
os_input_reset& value( const string& value )
Sets the button text to value and returns a reference to the input reset button.

Copyright©1994-2026 Recursion Software LLC
All Rights Reserved