lightweight-charts-python icon indicating copy to clipboard operation
lightweight-charts-python copied to clipboard

Input field

Open neodino opened this issue 2 years ago • 4 comments

Question

Hello, Is there any suggestion on how to enable input fields? Trying to figure out how to enable textbox value to be entered on frontend. Maybe another parameter to enable editing? Thanks!

Code example

chart.topbar.textbox('symbol', '7181.T',align='right',edit=True)

neodino avatar Dec 13 '23 10:12 neodino

Actually having the tables cells to be editable with be more useful. Any pointer how to do this. Thanks

neodino avatar Dec 22 '23 00:12 neodino

Hey @neodino,

At the moment neither input fields or editable cells are available, however I will look to implement both in a future update.

I'm assuming you would expect changing the values of a cell to also update the python data; would it also be beneficial to have an event that fires anytime a cell is changed?

Louis

louisnw01 avatar Dec 22 '23 20:12 louisnw01

Right. Cell events will be great. My intention is to use this as a form. My target is to build something that will have a function of order entry . Similarly to what below offers image

neodino avatar Dec 25 '23 11:12 neodino

yes, i would really like it textboxes can be editable , will be really useful in loading option strike price csv , since date and strike price will also be a parameter in csv name. as of now we have to enter the entire name at once

isshin1 avatar Jan 21 '24 18:01 isshin1

You might want to try this pull request Text edit support #374

sefgit avatar May 22 '24 11:05 sefgit

Implemented in latest version.

Louis

louisnw01 avatar Jun 01 '24 12:06 louisnw01