function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VVHVVH 

on row action disable

 actions = [
        {label: 'Preview', name: 'Preview', disabled: true},
        {label: 'Remove', name: 'Remove', disabled: false}
    ];

   @track columns = [
        {
            type: 'action',
            typeAttributes: { rowActions: this.actions },
        },
        
    ];
    handleRowAction(event) {
        switch (actionName) {            
            case 'Remove':        
                  
                if(this.selectedRows.length>1){
                //make disabled true
                    
                }
                else{
                    //do something else
                }              
                
                break;
            default:
        }
    }
How to make disabled true in if condition? this.actions[1].disabled = true didnt work. Any other idea?
thanks in adavance
ShivankurShivankur (Salesforce Developers) 
Hi Shreevarsha,

Please check out this similar thread and discussion, which could help you implement this:
https://salesforce.stackexchange.com/questions/212676/lightningdatatable-dynamically-disable-rowactions

Hope above information helps, Please mark as Best Answer so that it can help others in the future.

Thanks.