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

Add DomAttributes property to UIComponent<TOwner> #682

Closed
YevgeniyShunevych opened this issue Oct 12, 2022 · 0 comments
Closed

Add DomAttributes property to UIComponent<TOwner> #682

YevgeniyShunevych opened this issue Oct 12, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych commented Oct 12, 2022

Add property to UIComponent<TOwner> and IUIComponent<TOwner>:

public UIComponentDomAttributesProvider<TOwner> DomAttributes { get; }

UIComponentDomAttributesProvider<TOwner> members:

public ValueProvider<string, TOwner> this[string attributeName] { get; }

public ValueProvider<TValue, TOwner> Get<TValue>(string attributeName);

public string GetValue(string attributeName);

public TValue GetValue<TValue>(string attributeName);
@YevgeniyShunevych YevgeniyShunevych added this to the 2.3.0 milestone Oct 12, 2022
@YevgeniyShunevych YevgeniyShunevych self-assigned this Oct 12, 2022
YevgeniyShunevych added a commit that referenced this issue Oct 12, 2022
- #683 Add `DomProperties` property to `UIComponent<TOwner>`;
- #684 Add `DomClasses` property to `UIComponent<TOwner>`;
- #685 Make `UIComponent<TOwner>.Attributes` obsolete and replace its usage with `DomAttributes` and `DomProperties`
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