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

Added simple support for setting attributes on a component, pretty mu… #6

Closed

Conversation

rstoneIDBS
Copy link

@rstoneIDBS rstoneIDBS commented Apr 24, 2023

…ch the same code as the property handling with an additional test for boolean attribute special cases

closes: #5

…ch the same code as the property handling with an additional test for boolean attribute special cases
@sand4rt sand4rt force-pushed the master branch 2 times, most recently from 96b2853 to 0d9ce4a Compare April 27, 2023 16:33
@Anmo
Copy link

Anmo commented May 5, 2023

Nice adding, can I just suggest that we could have something similar for data attributes?

something like:

function __pwUpdateDataAttributes(webComponent, dataattributes = {}) {
  Object.assign(webComponent.dataset, dataattributes)
}

@sand4rt sand4rt force-pushed the master branch 5 times, most recently from 47af38a to 69d9b5b Compare May 5, 2023 23:27
@sand4rt
Copy link
Owner

sand4rt commented May 5, 2023

Nice adding, can I just suggest that we could have something similar for data attributes?

something like:

function __pwUpdateDataAttributes(webComponent, dataattributes = {}) {
  Object.assign(webComponent.dataset, dataattributes)
}

Could you file a new issue including the use case? Then i can look into this.

@sand4rt sand4rt force-pushed the master branch 2 times, most recently from fde625b to 5f88cd2 Compare May 8, 2023 09:42
@Anmo Anmo mentioned this pull request May 15, 2023
@Anmo
Copy link

Anmo commented May 15, 2023

function __pwUpdateDataAttributes(webComponent, dataattributes = {}) {
  Object.assign(webComponent.dataset, dataattributes)
}

Created #11

@sand4rt
Copy link
Owner

sand4rt commented Sep 24, 2023

Closed due to inactivity, feel free to reopen when needed

@sand4rt sand4rt closed this Sep 24, 2023
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.

Not possible to test using attributes
3 participants