Styling Outline #1196
Unanswered
ricardoc05
asked this question in
Q&A
Styling Outline
#1196
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I give styles to the generated Outline, I can't find a props like customTextRenderer?
I think I should use something like this,
`
.....
const tocEstilo = {
ul: {
fontFamily: 'Verdana',
fontSize: '12px',
fontStyle: 'normal',
lineHeight: '2em',
fontWeight: 'normal',
fontVariant: 'normal',
textTransform: 'none',
color: '#00CC33',
textDecoration: 'none',
backgroundColor: '#CCCCCC',
textIndent: '5px',
listStylePosition: 'outside',
listStyleType: 'square',
padding: '6px',
margin: '2px',
}
}
.....
<Outline onItemClick={clickTOC} onLoadSuccess={(outline) => toc(outline)} className={tocEstilo}/>
`
but it doesn't work for me
Beta Was this translation helpful? Give feedback.
All reactions