mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-08 19:47:57 +02:00
IHTMLClient interface
This commit is contained in:
parent
ee912ee368
commit
465f2395b8
@ -29,7 +29,7 @@ Type
|
||||
TForeachHTMLElementDataEx = {$ifdef pas2js}reference to {$endif} procedure (aElement : TJSHTMLElement; aData : TObject);
|
||||
TForeachHTMLElementData = {$ifdef pas2js}reference to {$endif} procedure (aElement : TJSHTMLElement);
|
||||
|
||||
THTMLCustomElementAction = class(TComponent)
|
||||
THTMLCustomElementAction = class(TComponent,IHTMLClient)
|
||||
private
|
||||
FActionList: THTMLCustomElementActionList;
|
||||
FCSSSelector: String;
|
||||
@ -58,9 +58,12 @@ Type
|
||||
Procedure DoBind;
|
||||
Procedure DoBeforeBind; virtual;
|
||||
Procedure DoAfterBind; virtual;
|
||||
|
||||
Public
|
||||
Destructor Destroy; override;
|
||||
Class Function GetElementValue(aElement : TJSHTMLElement) : String; virtual;
|
||||
procedure HTMLLoaded;
|
||||
procedure HTMLRendered;
|
||||
Class Procedure SetElementValue(aElement : TJSHTMLElement; const aValue : String; asHTML : Boolean = false); virtual;
|
||||
function GetParentComponent: TComponent; override;
|
||||
function HasParent: Boolean; override;
|
||||
@ -406,6 +409,16 @@ begin
|
||||
Result:=aElement.InputValue;
|
||||
end;
|
||||
|
||||
procedure THTMLCustomElementAction.HTMLLoaded;
|
||||
begin
|
||||
// Do nothing
|
||||
end;
|
||||
|
||||
procedure THTMLCustomElementAction.HTMLRendered;
|
||||
begin
|
||||
Bind;
|
||||
end;
|
||||
|
||||
class procedure THTMLCustomElementAction.SetElementValue(
|
||||
aElement: TJSHTMLElement; const aValue: String; asHTML: Boolean);
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user