Is it possible to override a method of the base widget using a widget-subclass? #8073
Replies: 5 comments 5 replies
-
I found out that I can do this in a startup module. But would that be the preferred option? Thank you, |
Beta Was this translation helpful? Give feedback.
-
Hi @BurningTreeC it would indeed be interesting to know what you're trying to achieve. Overriding a base class does seem like it should be a last resort. |
Beta Was this translation helpful? Give feedback.
-
What I'm trying to achieve is the following:
Why? In my TiddlyFlex layout tiddlers that are outside of the visible areas get the style Now, refreshing a tiddler with How I'm doing it (and I don't say that it's the correct way) is overriding the base widget
I really don't know if this is something for the core @pmario ... even if it makes sense not refreshing tiddlers with those styles ... Thank you for your attention! |
Beta Was this translation helpful? Give feedback.
-
P.S. yes, the question is, what to do if a tiddler outside of the view transcludes a tiddler that is within the view and if that tiddler's content changes and that would cause the tiddler out of view to resize, what to do in that case... I'm testing that 😸 |
Beta Was this translation helpful? Give feedback.
-
I found my answer: it's not needed. 😄 |
Beta Was this translation helpful? Give feedback.
-
I would like to override the
refreshChildren
method of the base widget (widget.js
) using awidget-subclass
Is that possible somehow? I'm trying my best but with no luck...
Beta Was this translation helpful? Give feedback.
All reactions