Skip to content

Settings' Options functions (_js). #1172

Answered by vladmandic
Symbiomatrix asked this question in Q&A
Discussion options

You must be logged in to vote

i haven't tried, but this should work...

typical use of optioninfo:

options_templates.update(options_section(('system-paths', "System Paths"), {
    "temp_dir": OptionInfo("", "Directory for temporary images; leave empty for default"),
}

and now with hijaack

my_option = OptionInfo("", "Directory for temporary images; leave empty for default")
my_option.component.change(fn=None, _js="my_js_function", inputs=[], outputs=[])
options_templates.update(options_section(('system-paths', "System Paths"), {
    "temp_dir": my_option,
}

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
11 replies
@Symbiomatrix
Comment options

@vladmandic
Comment options

@DominikDoom
Comment options

@vladmandic
Comment options

@DominikDoom
Comment options

Answer selected by Symbiomatrix
Comment options

You must be logged in to vote
1 reply
@DominikDoom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants