3

I am trying to access the List view command bar in commnd-set spfx project but no success. I am trying below code:

const compareOneCommand: Command = this.tryGetCommand('COMMAND_1'); if (compareOneCommand) { // This command should be hidden unless exactly one row is selected. compareOneCommand.visible = event.selectedRows.length === 1; } //custom const upld :Command = this.tryGetCommand('Upload'); if(upld){ alert('upload found'); upld.visible = false; } //end 

I am able to get custom command 'Command_1' but no Luck with 'Upload' Button. The intention is to hide the Upload Button in modern Library experience.

Please help me out.. Urgently needed! Thanks in advance

1
  • Is this possible? Commented Feb 22, 2018 at 9:48

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.