Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing documentation on assigning markers (and annotations) #41

Open
jeromeroussin opened this issue Oct 8, 2022 · 1 comment
Open

Comments

@jeromeroussin
Copy link

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

@RichDom2185
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants