I want to add a print button to SharePoint modern experience list views in both Lists and Libraries.
In classic view print dialog can be opened with executing a javascript function in CommandAction
property.
CommandAction="javascript:print();"
Is there any way to achieve similar functionality modern experience?