Does it possible to define script attr with view condition?

I have an example like this

And I just want to hide Delay and Duration properties if autoplay is false.
For example, this way:

ScriptType.attributes.add('autoplay', { type: 'boolean' });
ScriptType.attributes.add('delay', {
  type: 'number',
  default: 0,
  isVisible: function(){
    return this.autoplay;
  }
});

Same question was here and still not enough active discussion. But may be you have this feature in milestones?
(May be I should post it in suggestions thread?)

1 Like

@whydoidoit Do you think something like this is possible with the Chrome plugin you have written? I can imagine it be a little tricky?

Hmmm, yeah changing existing functionality is harder than adding new panels etc.