streamlit-ace icon indicating copy to clipboard operation
streamlit-ace copied to clipboard

Missing documentation on assigning markers (and annotations)

Open jeromeroussin opened this issue 3 years ago • 1 comments

Hey, streamlit_ace is great stuff.

I am having issues though making the "markers" option do anything. Am I correct to think that it takes a list of dicts looking like

{'startRow': 1, 'startCol': 0, 'endRow': 302, 'endCol': 0, 'className': 'red', 'type': 'text'}

And "red" needs to be defined as CSS class via st.markdown()?

If not, how does it work?

Thanks

jeromeroussin avatar Oct 08 '22 00:10 jeromeroussin

Hi, did you figure it out? Seems like the problem comes from the fact that streamlit components are rendered inside iframes, so any <style> tags defined outside it (such as using st.markdown() will not affect the components in any way. I have yet to find a solution to this problem, though...

RichDom2185 avatar Nov 18 '23 17:11 RichDom2185