Adding a button to the settings page of an extension #14703
Unanswered
SenshiSentou
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to add a button to an extension's settings page directly from the
on_ui_settings
callback? I've seen another extension inject it through javascript; is that the preferred (only?) approach? Thanks!EDIT: I can add a button using
shared.OptionInfo("Foo", gr.Button)
, but theonchange
event isn't called on click. I then tried assigning these manually thoughbtn.component.click(my_callback)
, but it errors out withtype object 'Button' has no attribute 'click'
. Same withjs
for calling a front-end method. Seems I can't access the component instance directly?Also no dice using the
component_args
:Button.update() got an unexpected keyword argument 'click'
Beta Was this translation helpful? Give feedback.
All reactions