Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Newline in the text of clientside_callback

$
0
0

Hi Team:

I am trying to allow client to copy/paste to clipboard using a click button. Understood that we should use the clientside_callback.

Can someone please tell me how we should handle line break in the text?

For example, this is the expected output:
“I am
here.”

In the clientside_callback, if I use:
‘I am \n here’, ‘I am \n\r here’, an exception is thrown saying “invalid or unexpected tokens”.

If I use:
‘I am
here’, it doesn’t work neither.

Can someone please share some thoughts? Thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images