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

Exposing reference to the Widget through an optional variable #33

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

sirphoenix
Copy link

Adds a new "component" parameter to the render() function which can be either a string or object.

When passing a string like 'foo' the reference will be set to window[foo].
When passing an object it will set its property 'ref' to the widgets reference.

Also made some code cleanup since there were no eslint-settings to be found.

@viperfx
Copy link

viperfx commented Sep 30, 2020

@sirphoenix can these changes be used to make a widget that can show/hide based on a click's on the host element?

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.

None yet

2 participants