phase2 / outline

Tooling infrastructure for modern web component development.
https://outline.phase2tech.com
MIT License
128 stars 27 forks source link

feat: adding new and improved slots-controller #350

Closed shaal closed 1 year ago

shaal commented 2 years ago

Description

(this PR updates legacy-next branch, so all current projects can utilize it)

Adding new and improved slots-controller.

This controller allows cloning slots into the shadow DOM, by calling a function inside render() of the component. Any changes in the light DOM trigger requestUpdate() and thus re-cloning of the slots into the shadow DOM. The controller dispatches Click events that are triggered in the cloned slots in shadow DOM to the equivalent light DOM slot.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist