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

Control blur functionality #564

Closed
YevgeniyShunevych opened this issue Oct 21, 2021 · 0 comments
Closed

Control blur functionality #564

YevgeniyShunevych opened this issue Oct 21, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

Add blur (remove focus) functionality to Control<TOwner>.

Implementation

Control<TOwner>

Add method to Control<TOwner>:

/// <summary>
/// Removes focus from the control.
/// Executes an associated with the component <see cref="BlurBehaviorAttribute"/>
/// that is <see cref="BlursUsingScriptAttribute"/> by default.
/// Also executes <see cref="TriggerEvents.BeforeBlur" /> and <see cref="TriggerEvents.AfterBlur" /> triggers.
/// </summary>
/// <returns>The instance of the owner page object.</returns>
public TOwner Blur();

TriggerEvents

Add BeforeBlur and AfterBlur values to TriggerEvents.

Behaviors

Add abstract BlurBehaviorAttribute and BlursUsingScriptAttribute as a default implementation.

UIComponentScriptExecutor<TOwner>

Add method to UIComponentScriptExecutor<TOwner>.

public TOwner Blur();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant