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

getAttribute #19

Open
AdrianRC opened this issue Dec 20, 2022 · 0 comments
Open

getAttribute #19

AdrianRC opened this issue Dec 20, 2022 · 0 comments
Assignees

Comments

@AdrianRC
Copy link
Contributor

Fetches an attribute using the passed-in identifier, which can be either the attribute's ID or the attribute's slug.

Example

const atrribute = getAttribute(client, "color");

API

const attribute = getAttribute(client, id);
client (SwellClient): The client returned from the `init` function.
id (string): Identifier for the attribute. Can be either the attribute's slug or the attribute's id.
@AdrianRC AdrianRC converted this from a draft issue Dec 20, 2022
@AdrianRC AdrianRC added this to the @swell/js 0.3.0 milestone Dec 20, 2022
@bonofiglio bonofiglio moved this from Todo to In Progress in Swell SDK Jan 24, 2023
@bonofiglio bonofiglio self-assigned this Jan 24, 2023
@bonofiglio bonofiglio moved this from In Progress to Done in Swell SDK Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants