Hello,
Can you try this approach..?
procedure TMainForm.UniButton1Click(Sender: TObject); //use "OnClick", "OnReady" events...
begin
with UniChart1 do
JSInterface.JSCall('chart.getSeries()[0].setHidden', [True]); //False
end;
Try this for now:
procedure TMainForm.UniFormCreate(Sender: TObject);
begin
UniMemo1.JSInterface.JSAddListener('afterrender', 'function(){this.inputEl.setStyle("overflow", "hidden")}');
end;
This is normal behavior for the display of whitespaces is to compress them into a single one, which is then displayed.
There are two exceptions from that:
1. Using <pre> tag:
UniLabel1 -> TextConversion = txtHTML
UniLabel1 -> <pre>Caption = abc 123</pre>
2. Using CSS:
procedure TMainForm.UniFormCreate(Sender: TObject);
begin
UniLabel1.JSInterface.JSConfig('style', ['white-space: pre']);
end;
UniLabel1 -> TextConversion = txtRegular
UniLabel1 -> Caption = abc 123
Can you try this approach?
procedure TMainForm.UniFormCreate(Sender: TObject);
begin
UniMemo1.JSInterface.JSAddListener('afterrender', 'function(){this.inputEl.setStyle("line-height", this.inputEl.getStyle("font-size"))}');
end;
Sorry for the late reply.
I’m thinking about another possible case.
What if you will change the value of the "VALUE" field, what will happen to fields 2, 3?