mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-01 08:54:57 -04:00
properly expose selection api in HTMLTextAreaElement
This commit is contained in:
1 file changed
+6
@@ -290,6 +290,12 @@ pub const JsApi = struct {
|
||||
pub const name = bridge.accessor(TextArea.getName, TextArea.setName, .{});
|
||||
pub const required = bridge.accessor(TextArea.getRequired, TextArea.setRequired, .{});
|
||||
pub const form = bridge.accessor(TextArea.getForm, null, .{});
|
||||
pub const select = bridge.function(TextArea.select, .{});
|
||||
|
||||
pub const selectionStart = bridge.accessor(TextArea.getSelectionStart, TextArea.setSelectionStart, .{});
|
||||
pub const selectionEnd = bridge.accessor(TextArea.getSelectionEnd, TextArea.setSelectionEnd, .{});
|
||||
pub const selectionDirection = bridge.accessor(TextArea.getSelectionDirection, null, .{});
|
||||
pub const setSelectionRange = bridge.function(TextArea.setSelectionRange, .{ .dom_exception = true });
|
||||
};
|
||||
|
||||
pub const Build = struct {
|
||||
|
||||
Reference in new issue
Block a user