UniHTMLMemo1.JSInterface.JSAddListener('change',
'function(field){var body = field.getEditorBody(); field.setHeight(body.offsetHeight);}');
How to client fireevent change by code?
procedure TMainForm.UniButton2Click(Sender: TObject);
begin
// UniHTMLMemo1.Height:= 300;
UniHTMLMemo1.JSInterface.JSCall('Change',[]);
end;
procedure TUniFrame3.DetermineHeight;
begin
UniPanel1.Height:= UniHTMLMemo1.Height+Panel_MenuA.Height; <-Serverside Incorect
Height:= UniPanel1.Height+20; //<- --Serverside Incorrect
end;
I don't known How to calculate (Clientside) htmlmemo.height after set htmlmemo.Line.text.
AutoHeightHTMLMemoV4.zip
Requirement: Use CheckBox Like RadioBox with AligmentClient.
1. User Click First CheckBox (CheckBox1.Checked:=True)
2 User Click Second CheckBox (CheckBox2.Checked:= True)
(How to code CheckBox1.Checked:=False with CheckBox1.JSInterface.JSCall)
function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
columns[0].maxWidth = 50;
columns[1].maxWidth = 75;
columns.forEach(function(el){el.flex=1});
}
How to code with .pas code at runtime?