Comments (5)
@Kye-NG ok I now see the problem. This is specifically for dynamic menus inside a list when you need to know which menu item inside the menu button inside the list is clicked
from appsmith.
@Kye-NG in this case you should use the List1.selectedItem or List1.triggeredItem
from appsmith.
That gives me the metadata of the list item itself, i want to access the data of the dynamic menu button that i clicked on.
both List1.selectedItem
and List1.triggeredItem
contain
But i'm expecting { label: 'test1', value: 'banana'}
which is the clicked button's data.
from appsmith.
@Kye-NG use the selectedItemView then
from appsmith.
@Nikhil-Nandagopal that also doesn't contain the data of the button i clicked... to reiterate, i don't want the metadata of the list item, i want the metadata of the button that i clicked on.
Have you tried the reproducible steps? It's quite easy to understand that when the button is outside of the list, the onclick event can access the buttons values when clicked using currentItem
, but if it's put inside of a list it no longer has those values attached to currentItem
.
Since it's a dynamic menu (which will be based off of the data from the list), currently without having access to currentItem
values for the button, I won't be able to know which button is being clicked.
from appsmith.
Related Issues (20)
- [Task]: Translate Grafana dahsborad to k8s
- [Task]: Add time stamps for test pod heap dump collection
- [Task]: Replace gson usage with jackson -
- [Bug]: Errors are shown on adding a template
- [Bug]: Evaluation/autocomplete sort of breaks when there is a cyclic dependency due to self-referencing
- [Bug]: Blank error toast seen in the following scenario related to permissions
- [Bug]: The execute permission for queries are removed when make public and export access are removed from the app
- [Bug]: rowData.target_status was set to 'new' even if I wrote another value to it HOT 1
- [Task] Support easy copying of run details during debugging and prod runs HOT 3
- [Task] Keep the last passed params in context to enable test at query level HOT 2
- [Task]: To write an automation test for validating theme fix #35692
- [Task]: Add external license id in the response for get licenses and create license APIs
- Blockhound Check To Unblock git endpoints & apis
- Check Git status api for blocking calls and unblock if required
- [Bug]:
- [Task]: Add metrics for the sub-components of pages in consolidated API
- [Task]: SCIM groups are not getting updated properly when upgrading the node module scimgateway to v4.5.5 HOT 1
- [Task]: Add automatic import sorting in FE client
- [Feature]: Custom Widget import from app installed libraries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appsmith.