[NUI] Support markup anchor to TextLabel, TextField, TextEditor (#2813)
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 7 Apr 2021 10:26:26 +0000 (19:26 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Tue, 20 Apr 2021 06:13:00 +0000 (15:13 +0900)
commit0b81c0b363fc8ede904e48a018a777e20927c14a
treefe0d4922ded132d9b548de227d993e33beda141a
parent70677402893c9032cc4bd69c523f6228ea8f7cfc
[NUI] Support markup anchor to TextLabel, TextField, TextEditor (#2813)

* [NUI] Support markup anchor to TextLabel, TextField, TextEditor

User can set href on anchors using the anchor tag <a> in markup.
and also can register AnchorClicked callback in Text components.
the AnchorClicked signal is emitted when the anchor is clicked.

example:
label.Text = "<a href='https://www.tizen.org'>Tizen</a>";
label.EnableMarkup = true;
label.AnchorClicked += (sender, e) =>
{
  Tizen.Log.Info("NUI", e.Href + "\n");
};

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
[NUI] Remove unnecessary codes.

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
* [NUI] Change the name of signal to AnchorClicked.

To prevent confusion with TouchSignal(),
the name of signal was changed to AnchorClicked.

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/Tizen.NUI/src/internal/Common/TextLabelSignal.cs [new file with mode: 0644]
src/Tizen.NUI/src/internal/Interop/Interop.TextEditor.cs
src/Tizen.NUI/src/internal/Interop/Interop.TextField.cs
src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/TextEditorEvent.cs
src/Tizen.NUI/src/public/BaseComponents/TextEvent.cs [new file with mode: 0644]
src/Tizen.NUI/src/public/BaseComponents/TextFieldEvent.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabelEvent.cs [new file with mode: 0644]