-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Prepend or more general Insert functionality for widgets like Accordion etc #5413
Comments
Please keep issues specific to a single request. Keeping track of lots of stuff in issues gets complicated quickly. I'll try to answer some of the things mentioned above.
That can absolutely be a good idea API-wise but FYI, you can do all of this now using
As a rule of thumb, you should never export locks as public fields. That is dangerous. All of the locking should be handled internally inside the API. However, we are working on a new threading model and that will solve the synchronisation problems. See #4654.
Feel free to open a separate feature request only about adding data binding to accordion.
You can easily sort the underlying items using something like slices.Sort or similar. |
Closing this as it contains more than one feature request. As noted above, please open one feature request for each specific feature instead. Thanks. |
Thanks for quick and detailed reply. As for the following, I wanna further help.
As I mentioned earlier, I tried to "Insert to Accordion's Items slice: it'll crash due to, in my opinion, lack of access to perpertyLock protection" with codeines:
new item is inserted as expected: 1 [0xc0039f6810] yet panic error follows:
Could you please drop me a hint how to avoid above error? Thanks in advance. |
Checklist
Is your feature request related to a problem?
For one of my application, new search result is best suited to appear on the top.
Is it possible to construct a solution with the existing API?
I tried following means, yet none can meet the need: (Point me a direction if I miss something.)
Describe the solution you'd like to see.
Correct me if I'm wrong:
The text was updated successfully, but these errors were encountered: