justpy icon indicating copy to clipboard operation
justpy copied to clipboard

parse_html and custom components

Open elimintz opened this issue 3 years ago • 1 comments

Discussed in https://github.com/elimintz/justpy/discussions/286

Originally posted by arechnitzer July 27, 2021 I'm trying to make some custom components and I'd like to get them to work with the parse_html function. I've tried added the @jp.parse_dict decorator, but without success.

If I wanted to get your "MyAlert" component from the docs to work as a tag recognised by jp.parse_html, how would I need to adapt it?

elimintz avatar Jul 28 '21 12:07 elimintz

I understand why this could be an interesting feature. This is not yet supported. Will try to add to one of the next versions.

elimintz avatar Jul 28 '21 12:07 elimintz