Skip to main content
8 events
when toggle format what by license comment
Apr 8, 2018 at 3:51 comment added sfdcfox @VidhyasagaranMuralidharan No, you can't use getRowActions, because that's used for row actions. However, you can still evaluate based on some data to determine if you need to disable the button (<lightning:button disabled="{!row.someAttribute}" ... />). If you're stuck, try asking a new question so we can see the code you've tried so far and where you're stuck.
Apr 8, 2018 at 3:44 comment added Vidhyasagaran Muralidharan @sfdcfox Yes got it.I got requirement like i have ten rows with button.based on condition in one row i need to disable button.So I am curious to know whether we can use helper.getRowActions.bind for that. And I don't find any documentation based on button example.
Apr 8, 2018 at 0:22 comment added sfdcfox @VidhyasagaranMuralidharan you can set the disabled attribute, I believe, but you'll want to check the documentation. Actions should always use an action menu, not a button.
Apr 7, 2018 at 23:10 comment added Vidhyasagaran Muralidharan @sfdcfox can we do the same approach for lightning button that is of type button.
Mar 27, 2018 at 8:32 vote accept jordan.baucke
Mar 26, 2018 at 6:29 comment added sfdcfox @ItaiShmida You'll want to read Function.prototype.bind. It's not Lightning specific, but rather just a general JavaScript function.
Mar 26, 2018 at 6:17 comment added Itai Shmida I wonder @sfdcfox if you can explain what you are doing with the helper.getRowActions.bind and how it works?
Mar 25, 2018 at 8:41 history answered sfdcfox CC BY-SA 3.0