lightning:datatable component - hiding Save and Cancel buttons after inline edit
According to the documentation on <lightning:datatable>
, you may find the suppressBottomBar
attribute useful:
Specifies whether the inline edit Save/Cancel bottom bar should be hidden.
<lightning:datatable suppressBottomBar="true" ... />
Clearing the draftValues attribute on the lightning:datatable component clears the edited cells and hides the Save and Cancel buttons at the bottom of the table.
e.g.
cmp.find("table-component-id").set("v.draftValues", null);
Thanks to tsalb for pointing me in the right direction.