Git Product home page Git Product logo

Comments (5)

Nikhil-Nandagopal avatar Nikhil-Nandagopal commented on August 17, 2024 1

@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.

Nikhil-Nandagopal avatar Nikhil-Nandagopal commented on August 17, 2024

@Kye-NG in this case you should use the List1.selectedItem or List1.triggeredItem

from appsmith.

Kye-NG avatar Kye-NG commented on August 17, 2024

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
image

But i'm expecting { label: 'test1', value: 'banana'} which is the clicked button's data.

from appsmith.

Nikhil-Nandagopal avatar Nikhil-Nandagopal commented on August 17, 2024

@Kye-NG use the selectedItemView then

from appsmith.

Kye-NG avatar Kye-NG commented on August 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.