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 data-binding support to Accordion #5417

Closed
2 tasks done
JeffreyLeeLi opened this issue Jan 16, 2025 · 2 comments
Closed
2 tasks done

Add data-binding support to Accordion #5417

JeffreyLeeLi opened this issue Jan 16, 2025 · 2 comments

Comments

@JeffreyLeeLi
Copy link

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

It's more intuitive and convenient to use data binding style api.

Is it possible to construct a solution with the existing API?

Not available.

Describe the solution you'd like to see.

add an api similar to NewAccordionWithData(data binding.StringList).

@Jacalz Jacalz changed the title add data-binding style constructor to Accordion Add data-binding support to Accordion Jan 16, 2025
@andydotxyz
Copy link
Member

What data does Accordion work with? Our data binding API is for just that - user data.

If we attach it to a string list won't it just create a load of empty accordion items with the titles set?

@JeffreyLeeLi
Copy link
Author

If we attach it to a string list won't it just create a load of empty accordion items with the titles set?

Seems i'll be like that, you're quite right.

It's my fault for issuing an immature idea.

Sorry to bother.

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

No branches or pull requests

2 participants