Skip to content

Commit 990cad8

Browse files
committed
Add documentation
1 parent ff6a3f0 commit 990cad8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

EmbAJAX.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,15 @@ class EmbAJAXRadioGroupBase;
519519
* please do not rely on this implementation detail. */
520520
class EmbAJAXCheckButton : public EmbAJAXElement {
521521
public:
522+
/** constructor
523+
* @param id Id of this checkbox. @See EmbAJAXElement().
524+
* @param label Label of the checkbox. May contain HTML (no quoting is done).
525+
* The label is added as a <label/>-element next to the checkbox (<input type="checkbox"/>).
526+
* Speficying an empty string ("") causes the label to be empty, but leaving the value as nullptr
527+
* will cause the <label/>-element to be omitted (useful with some CSS definitions).
528+
* @param checked If true, the checkbox will be initially checked. @see setChecked().
529+
*/
530+
EmbAJAXCheckButton(const char* id, const char* label=EmbAJAXBase::null_string, bool checked=false);
522531
EmbAJAXCheckButton(const char* id, const char* label=nullptr, bool checked=false);
523532
void print() const override;
524533
const char* value(uint8_t which = EmbAJAXBase::Value) const override;

0 commit comments

Comments
 (0)