We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
panel==1.2.1
In https://discourse.holoviz.org/t/copy-to-clipboard-js-callback-on-a-floatpanel-not-working/5831 Monodera reports that he cannot get copy to clipboard working for a Button inside the FloatPanel.
FloatPanel
I've reduced the example to
import panel as pn def copy_to_clipboard_in_floatpanel(): copy_source_button = pn.widgets.Button( name="✂ Copy Source Value", button_type="success" ) copy_source_code = "console.log('allo')" copy_source_button.js_on_click( code=copy_source_code ) return pn.layout.FloatPanel(copy_source_button, name="Float") # return pn.Column(copy_source_button, ) copy_to_clipboard_in_floatpanel().servable()
If you click the button, I would expect allo to be printed in the browser console. But it is not.
If you place the copy_source_button inside a Column (commented out code line), it works.
copy_source_button
Column
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
panel==1.2.1
In https://discourse.holoviz.org/t/copy-to-clipboard-js-callback-on-a-floatpanel-not-working/5831 Monodera reports that he cannot get copy to clipboard working for a Button inside the
FloatPanel
.I've reduced the example to
If you click the button, I would expect allo to be printed in the browser console. But it is not.
If you place the
copy_source_button
inside aColumn
(commented out code line), it works.The text was updated successfully, but these errors were encountered: