Skip to content

Commit

Permalink
Implementação do Callback
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocandrade committed Aug 19, 2022
1 parent 3c88dd6 commit f181738
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CardStyled.IconBackground.pas
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,13 @@ function TModelCardStyledIconBackground.GenerateFooter: String;
end;

procedure TModelCardStyledIconBackground.GenerateHTML;
var
CardCallback : string;
begin
FHTML := Format('<div id="%s" class="%s %s">', [FName, FColMd, Fcolxl]) +
CardCallback := '';
if Assigned(FCallBack) then
CardCallback := FCallBack.ResultClass;
FHTML := Format('<div id="%s" class="%s %s"%s>', [FName, FColMd, Fcolxl, CardCallback]) +
'<div class="card" style="background: ' + FBackgroundColor +'; border-radius: 10px;">' +
'<div class="p-4">' +
GenerateShape +
Expand Down
7 changes: 6 additions & 1 deletion CardStyled.IconLeft.pas
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,13 @@ function TModelCardStyledIconLeft.GenerateFooter: String;
end;

procedure TModelCardStyledIconLeft.GenerateHTML;
var
CardCallback : string;
begin
FHTML := Format('<div id="%s" class="%s %s">', [FName, FColMd, Fcolxl]) +
CardCallback := '';
if Assigned(FCallBack) then
CardCallback := FCallBack.ResultClass;
FHTML := Format('<div id="%s" class="%s %s"%s>', [FName, FColMd, Fcolxl, CardCallback]) +
'<div class="card" style="background: ' + FBackgroundColor +'">' +
'<div class="card-body">' +
'<div class="row">' +
Expand Down

0 comments on commit f181738

Please sign in to comment.