โ03-04-2019 11:04 AM
I have a snap, that I have developed, for which I would like to add the โExecute during previewโ capability.
Can anyone provide me with java code capable of accomplishing this? I do not need the code to create the UI feature, property or variable. I just need the code to determine whether the execution process is in the validation or run-time mode.
TIA,
โ Del
Solved! Go to Solution.
โ03-04-2019 12:08 PM
@del adding @Category(snap = SnapCategory.WRITE)
to the class definition will automatically expose the โExecute during previewโ checkbox. As @rohithmadhavan stated, behavior can be customized with SuggestExecutionProvider
.
See Snap Development Documentation and Snap Development Documentation
โ05-26-2020 11:09 AM
Hi JiWon,
Iโm not sure exactly what youโre asking. If you want to know how to define a checkbox property in a custom snap, youโd have code something like this in your defineProperties method:
propertyBuilder.describe("name", "label", "description")
.type(SnapType.BOOLEAN)
.defaultValue(true)
.add();
โ05-29-2020 01:45 AM
Thanks ptaylor ๐
โ05-26-2020 11:36 AM
Hi @JiWon,
The solution for me was Robinโs response above. Iโve highlighted the necessary code here (in context):