Skip to main content
Question

Box UI Elements

  • May 22, 2025
  • 2 replies
  • 22 views

Forum|alt.badge.img
Hi there.
Quick question around the UI Elements. Some of the props for ContentExplorer don't appear to work or I'm not setting them correctly. For example, canRename doesn't appear to change the functionality of the component. If I set it to false I can still rename the item. Is there another way that the prop should be passed in? I must be missing something.  
 
<ContentExplorer
   token={this.state.token}
   language='en-US'
   messages={messages}
   logoUrl={this.state.logo}
   canRename='false'
   canSetShareAccess='false'
   onSelect={this.handleChooseItems}
/>

2 replies

Forum|alt.badge.img

Hi  :

 

You'll need to pass the values as booleans rather than strings, as any non-empty string value is considered to be a "truthy" value:

 

Hope that helps.


Forum|alt.badge.img

 - Thank you very much!