mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-23 08:50:05 +02:00
* ClearContents added
This commit is contained in:
parent
5222c7955b
commit
a30c313d3e
@ -456,6 +456,8 @@ Type
|
|||||||
Public
|
Public
|
||||||
Constructor Create(aOwner : TComponent); override;
|
Constructor Create(aOwner : TComponent); override;
|
||||||
Destructor Destroy; override;
|
Destructor Destroy; override;
|
||||||
|
// Clear content
|
||||||
|
Procedure ClearContent; virtual;
|
||||||
// Does this element allow childern ?
|
// Does this element allow childern ?
|
||||||
Class Function AllowChildren : Boolean; virtual;
|
Class Function AllowChildren : Boolean; virtual;
|
||||||
// Manipulate Classes
|
// Manipulate Classes
|
||||||
@ -3000,6 +3002,12 @@ begin
|
|||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomWebWidget.ClearContent;
|
||||||
|
begin
|
||||||
|
if Assigned(FElement) then
|
||||||
|
FElement.InnerHTML:='';
|
||||||
|
end;
|
||||||
|
|
||||||
class function TCustomWebWidget.AllowChildren: Boolean;
|
class function TCustomWebWidget.AllowChildren: Boolean;
|
||||||
begin
|
begin
|
||||||
Result:=True;
|
Result:=True;
|
||||||
|
Loading…
Reference in New Issue
Block a user