Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-844

SuggestionPopup Allow replacing selected text to the beginning index until current cursor of TextInput or TextArea Component

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: wtk, wtk-terra
    • Labels:
      None

      Description

      SuggestionPopup used to replacing whole content of TextInput once user make a selection. This creates difficulties in implementing, for example, a list of comma separated email addresses in recipients column.
      I suggest to modify the replacing methodology to allow additional parameter of Index of the beginning word to input so that the SuggestionPopup will replace from the beginning index to the current caret (text cursor) with user selection. Additionally, allow not only TextInput but also TextArea to be served with, which we can build a typing assistant like function.
      The finding the beginning index is user code responsibility which opens up the choice of usages, like email address assistant where ";" is the separator and space as separator when general typing assistant. The user code just need to use Java String Split to locate the closet word to the caret for SuggestionPopup.

        Attachments

        1. PIVOT-844_third_rough_version.patch
          4 kB
          Sandro Martini
        2. PIVOT-844_second_rough_version.patch
          11 kB
          Sandro Martini

          Activity

            People

            • Assignee:
              rwhitcomb Roger Lee Whitcomb
              Reporter:
              ccp999 Brendan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified