question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Offer easy way to disable detailRenderer

See original GitHub issue

I tried disabling the detailRenderer by setting detailRenderer={null}, which is an unexpected type and doesn’t work. In the tutorial, I saw headerRenderer set to null once and thought this would work here as well.

How can I disable the item details ?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
DarioDiemcommented, Dec 19, 2018

Hi I have the same question, in my case the user doesn’t have the need of the item details since the table already contains all that the user needs.

how can I pass the blank renderer? is there any example?

Answering my own question, just created a new Class which had the render() return what I wanted, either nothing or something that the users in my project would need and passed it as:

   <FileBrowser
     ...
     detailRenderer={MyRenderer}
     ...
   /> 

the class is something like this:

class MyRenderer extends React.Component {
  constructor(props) {
    super(props)
  }
  render() {
    return (
      <div>
        <p>something</p>
      </div>
    );
  }
}

export default MyRenderer;
1reaction
ziaulrehman40commented, May 14, 2020

Well, this works:

detailRenderer={() => null}

I think this issue should be closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable objects during rendering in blender - YouTube
In this Blender quick tip, I will show you how to let the render view only show objects you want to select.
Read more >
How to enable/disable renderer of entity? - Unity Forum
It seems like SetEnabled(false) disable the entity completely, not just the mesh renderer (The entity is not processed in the next frames).
Read more >
How to enable or disable software rendering in Internet Explorer
Click Start, click All Programs, and then click Windows Update. If you're prompted for an administrator password or confirmation, type the password or...
Read more >
How to disable layout and view renderer in ZF2?
Just use setTerminal(true) in your controller to disable layout. This behaviour documented here: Zend View Quick Start :: Dealing With Layouts. Example:
Read more >
Scripting API: Renderer.enabled - Unity - Manual
Makes the rendered 3D object visible if enabled. ... Did you find this page useful? Please give it a rating: ... Is something...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found