[ListItem-nestedItems]Customize icon for collapsible list
Hello,
I'm trying to create a collapsible list using nestedItems. However, I want to hide the down icon on the right and create my own at the left side. I tried to modify the css style using nestedListStyle(change display to be none but doesn't work.) Is there a way to achieve this? Or perhaps you can add this new feature?
Here is my code:
<ListItem
key={1}
primaryText={string.split("\n").map(function(i, index) {
//some parsing not relevant to this issue
if(i.includes('@@')){
//some parsing to create an array named `res`
res.push(string.split('\n')[i])
return <ListItem
key={index}
primaryText={<pre style={{color:'#9e9e9e',marginTop:0,marginBottom:0}}><code>
<FontIcon
className="fa fa-expand" style={{fontSize:14}}
/>{expand}
</code></pre>}
nestedItems={[
<pre style={{marginTop:0,marginBottom:0,color:'#9e9e9e'}}><code>
{res.join('\n')}</code></pre>
]}
innerDivStyle={{padding:0}}
/>}
I want to expand the nested list when I click
The html view of what I'm creating is like this screen shot. When I click the icon it will expand the code being collapsed.

Thanks.
We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it. Still, we will accept PR fixes until v1-beta takes over the master branch.