mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
properly expose selection api in HTMLTextAreaElement
This commit is contained in:
@@ -290,6 +290,12 @@ pub const JsApi = struct {
|
|||||||
pub const name = bridge.accessor(TextArea.getName, TextArea.setName, .{});
|
pub const name = bridge.accessor(TextArea.getName, TextArea.setName, .{});
|
||||||
pub const required = bridge.accessor(TextArea.getRequired, TextArea.setRequired, .{});
|
pub const required = bridge.accessor(TextArea.getRequired, TextArea.setRequired, .{});
|
||||||
pub const form = bridge.accessor(TextArea.getForm, null, .{});
|
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 {
|
pub const Build = struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user