-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NUI] Public APIs Copy, Cut, Paste and SelectText #1736
Conversation
checkout the webpage https://docs1.stg.tizen.org/staging/1736/ |
Check Broken Link: Not found any broken link |
✔️ [Keywords] Candidate keywords ordered by rank:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @shrouqsabah, I hope you are doing well.
I have checked the parts from your commit and left some correction suggestions.
Please incorporate them at your earliest convenience.
Thank you.
3f2c81b
to
5114472
Compare
checkout the webpage https://docs1.stg.tizen.org/staging/1736/ |
Check Broken Link: Not found any broken link |
✔️ [Keywords] Candidate keywords ordered by rank:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @shrouqsabah, thanks for your most recent commit implementing the changes.
After another check of the file I have found a few more issues that need to be addressed, please incorporate the changes at your earliest convenience.
Thanks.
5114472
to
d107e32
Compare
checkout the webpage https://docs1.stg.tizen.org/staging/1736/ |
Check Broken Link: Not found any broken link |
✔️ [Keywords] Candidate keywords ordered by rank:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrouqsabah, thanks for incorporating all the changes as per the suggestion.
@asm-foysal @mijin85cho, I am approving this PR for merging.
@omar-srbd is the heading count right? This file looks like it should be a second heading (at the same level as TextField and TextEditor) since it's reflecting data for both those sections... Also, the heading name seems too big, could we shorten it somehow? |
I agree to your comments.
|
@@ -756,6 +756,105 @@ The following table lists the available `TextEditor` properties: | |||
| `TranslatableText` | String | Specifies the `TranslatableText` property that sets the SID value. | | |||
|
|||
|
|||
### Use public APIs to copy, cut, paste, and select text in TextField or TextEditor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @shrouqsabah, I had a query regarding the heading.
The heading here seems to be a bit too long, we recommend using something concise for headings.
In this case, could you please clarify if the heading should emphasize the functionality of Copy, cut, paste, and select text or the usage of public APIs? Depending on your clarification I can provide an alternate for the heading or it would be better if you could change the heading to something concise.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @omar-srbd ,
We need to explain how to use APIs.
Here's the original request from ACR.
TCSACR-455 : Please add how to use new APIs. When you update the API guides, it will be good if you add how to use SelectedText API
.
Let's me know what you suggest :)
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@omar-srbd What do you think about this ( How to use Clipboard APIs with Select Text )?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left another review incorporating your suggestion for the heading.
Please look into it and update accordingly.
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -756,6 +756,105 @@ The following table lists the available `TextEditor` properties: | |||
| `TranslatableText` | String | Specifies the `TranslatableText` property that sets the SID value. | | |||
|
|||
|
|||
### Use public APIs to copy, cut, paste, and select text in TextField or TextEditor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Use public APIs to copy, cut, paste, and select text in TextField or TextEditor | |
## How to use clipboard APIs with select text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
d107e32
to
2ddce5b
Compare
checkout the webpage https://docs1.stg.tizen.org/staging/1736/ |
Check Broken Link: Not found any broken link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrouqsabah, after another review I found a few more issues that need to be addressed and left correction suggestions for them.
Please incorporate them at your convenience.
|
||
```csharp | ||
// Step 04: Select text from source text filed | ||
textFieldSrc.SelectText (0,8); // "Welcome!" is the selected text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a doubt regarding the selected text based on the declared indexes (0,8).
According to your declared indexes, the selected text should not include a space after the exclamation mark (!).
Can you please check this?
textFieldSrc.SelectText (0,8); // "Welcome!" is the selected text | |
textFieldSrc.SelectText (0,7); // "Welcome!" is the selected text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked.
I added the below note for description of SelectText. And fixed the first example:
`
Note
The selected text includes the start index.
But, the selected text does not include the end index.
textFieldSrc.SelectText (9,16); //"This is" is the selected text
`
2ddce5b
to
f1bd643
Compare
checkout the webpage https://docs1.stg.tizen.org/staging/1736/ |
Check Broken Link: Not found any broken link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrouqsabah, after a review of your last commit, I found one issue that needs to be addressed.
Please check the suggestion and incorporate the change accordingly.
Thanks.
> The selected text includes the start index. | ||
> But, the selected text does not include the end index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> The selected text includes the start index. | |
> But, the selected text does not include the end index. | |
> The selected text includes the start index, but it does not include the end index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@omar-srbd ,
Done. Thank you,
f1bd643
to
2cff543
Compare
checkout the webpage https://docs1.stg.tizen.org/staging/1736/ |
Check Broken Link: Not found any broken link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrouqsabah, thanks for incorporating all the suggested changes.
@mijin85cho @asm-foysal I am approving this PR for merging.
@@ -756,6 +756,108 @@ The following table lists the available `TextEditor` properties: | |||
| `TranslatableText` | String | Specifies the `TranslatableText` property that sets the SID value. | | |||
|
|||
|
|||
## How to use clipboard APIs with select text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrouqsabah Hello. Hope you are well!
After checking before merging, I have a query regarding this PR.
In the heading, you have mentioned SelectedText
, but in your changes here, you have written SelectText
API. From what I have observed, SelectText
is the appropriate name, as mentioned here. Can you please confirm if it should be SelectedText
API or SelectText
API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@safir-srbd , Hello, I hope you well too.
Yes, you are right. It should be SelectText
.
I will update title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrouqsabah Thank you for your response!
In that case, I have a heading suggestion for this section which would be more aligned with the rest of the titles in this document.
What do you think of "Use clipboard and SelectText APIs" as the heading?
If it seems ok, please update it and we can merge this PR.
2cff543
to
a1d4071
Compare
a1d4071
to
f287db7
Compare
checkout the webpage https://docs1.stg.tizen.org/staging/1736/ |
Check Broken Link: Not found any broken link |
checkout the webpage https://docs1.stg.tizen.org/staging/1736/ |
Check Broken Link: Not found any broken link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shrouqsabah Thank you for making the suggested change. All my comments have been addressed.
I am approving this PR for merging.
Change Description
Public APIs Copy, Cut, Paste and SelectedText in TextField or TextEditor
According to ACR request.
We need to explain how to use public APIs Copy, Cut, Paste and SelectedText in TextField or TextEditor.
Added at the end of docs in "docs/application/dotnet/guides/user-interface/nui/text.md" a header.
The header is "Use public APIs Copy, Cut, Paste and SelectedText in TextField or TextEditor"
Explained APIs and added sequence of steps how to use them together.
For instance,
API Changes
For instance,