mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 06:07:36 +00:00
LibWeb: Add basic support for <input type=checkbox>
This is implemented entirely inside LibWeb, there is no GUI::CheckBox widget instantiated, unlike other input types. All input types should be moved to this new style of implementation.
This commit is contained in:
parent
d6889ecf35
commit
f2431adf47
7 changed files with 195 additions and 1 deletions
|
@ -42,6 +42,14 @@ public:
|
|||
String type() const { return attribute(HTML::AttributeNames::type); }
|
||||
String value() const { return attribute(HTML::AttributeNames::value); }
|
||||
String name() const { return attribute(HTML::AttributeNames::name); }
|
||||
|
||||
bool checked() const { return m_checked; }
|
||||
void set_checked(bool);
|
||||
|
||||
bool enabled() const;
|
||||
|
||||
private:
|
||||
bool m_checked { false };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue