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

[FluentKeyCode] Allow content to avoid using the Anchor property #1743

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

dvoituron
Copy link
Collaborator

[FluentKeyCode] Allow content to avoid using the Anchor property

Adding a ChildContent property and a ´ElementReference` to apply the KeyCode engine to the FluentKeyCode content.

If the ChildContent is filled, the Anchor attribute is no longer used (and is ignored).
A new GlobalDocument property defines the component as global to the page, using the DOM object document.

Example:

<FluentKeyCode OnKeyDown="@KeyDownHandler">
   Hello World
</FluentKeyCode>

The HTML result will be:

<span>Hello World</span>

Breaking changes

No

Unit Tests

Updated

@dvoituron dvoituron requested a review from vnbaaij March 27, 2024 09:07
@vnbaaij vnbaaij merged commit 9e211d5 into dev Mar 27, 2024
3 checks passed
@vnbaaij vnbaaij deleted the users/dvoituron/update-keycode-global branch March 27, 2024 10:58
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