Skip to content

Add a flag to include/exclude inputs from preview calls #184

Open
@ctrueden

Description

@ctrueden

Let's add boolean isPreviewed() to ModuleItem, and boolean preview() default true; to Parameter, which control whether each individual parameter calls the preview() method after it changes.

Note that in cases where parameter foo triggers a callback which changes bar, but foo declares preview=false, this will not trigger a preview even though bar also changed, because callbacks and previews do not chain. It is the responsibility of the programmer to keep track of such "parameter dependencies" and structure things as needed for their use case.

Thanks to Adrian Daerr for the suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions