diff --git a/packages/webwidget/src/webwidget.pas b/packages/webwidget/src/webwidget.pas index b202e11..db9e35d 100644 --- a/packages/webwidget/src/webwidget.pas +++ b/packages/webwidget/src/webwidget.pas @@ -2290,12 +2290,16 @@ begin if (FElementID<>'') then begin El:=FindElement(FElementID); + FElement:=El; if Assigned(El) then begin + if Assigned(FBeforeRenderHTML) then + FBeforeRenderHTML(Self); ApplyWidgetSettings(el); HookupEvents(el); + if Assigned(FAfterRenderHTML) then + FAfterRenderHTML(Self); end; - FElement:=El; if Assigned(El) then ApplyData; RefreshReferences;// After data, so data can be used in selectors