Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[draft] Implement the popover API. #1734

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SylvainBoilard
Copy link
Contributor

Hello,

This PR adds support for the popover API.

See:

Please let me know of any issue; in fact, I would appreciate your input regarding a couple things (see below).

Cheers,

Comment on lines +758 to +767
method showPopover : unit meth

method showPopover_options : _ -> unit meth

method togglePopover : bool t meth

method togglePopover_force : bool t -> bool t meth

method togglePopover_options : _ -> bool t meth

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the specs, these methods accept a dictionary as a parameter for passing options. How would that be reflected in Js_of_ocaml?

Comment on lines +560 to +563
method onbeforetoggle : ('self t, toggleEvent t) event_listener writeonly_prop

method ontoggle : ('self t, toggleEvent t) event_listener writeonly_prop

Copy link
Contributor Author

@SylvainBoilard SylvainBoilard Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are similar methods related to event handlers in this file that have the prop type instead of writeonly_prop. In fact, the ontoggle method initially used the former type. Is this new version correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant