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

Pass InputField into a MadSkin #33

Closed
ahmedsaheed opened this issue Jun 9, 2022 · 5 comments
Closed

Pass InputField into a MadSkin #33

ahmedsaheed opened this issue Jun 9, 2022 · 5 comments

Comments

@ahmedsaheed
Copy link

GIven an input field

 Input: InputField::default(),

How do i get the input rendered as MD with a skin like so ?

skin.write_in_area_on(w, Input, &self.area);

I am just trying to render MD directly from the input

@Canop
Copy link
Owner

Canop commented Jun 9, 2022

You mean you want to render in another area the text the user typed in the input ?

@ahmedsaheed
Copy link
Author

Exactly, what i am trying to do is render the user input as markdown on a seperate area. It's kind of tricky for me to achieve.

@Canop
Copy link
Owner

Canop commented Jun 9, 2022

Ok. There should be no problem but it's easier when you wrote the crate. I'll try to build an example tomorrow.

@ahmedsaheed
Copy link
Author

okay, thanks a million

@Canop Canop closed this as completed in e20f9fe Jun 10, 2022
@Canop
Copy link
Owner

Canop commented Jun 10, 2022

I've added this example: https://github.com/Canop/termimad/tree/master/examples/render-input-markdown

If you have more questions, you might also ask in the chat room: https://miaou.dystroy.org/3768

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