mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 15:21:56 +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
Notes:
sideshowbarker
2024-07-19 02:45:51 +09:00
Author: https://github.com/awesomekling
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