~ubuntu-sdk-team/ubuntu-ui-toolkit/ellipticSubTitles

« back to all changes in this revision

Viewing changes to src/imports/Components/1.3/TextArea.qml

  • Committer: Tarmac
  • Author(s): Adnane Belmadiaf
  • Date: 2017-01-26 11:59:45 UTC
  • mfrom: (2160.1.2 fix-textarea)
  • Revision ID: tarmac-20170126115945-puirm4zn0kxw29fg
Expose append method in TextArea. Fixes: https://bugs.launchpad.net/bugs/1658121.

Approved by ubuntu-sdk-build-bot, Christian Dywan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
581
581
    }
582
582
 
583
583
    /*!
 
584
      Appends a new paragraph with text to the end of the TextArea.
 
585
 
 
586
      In order to append without inserting a new paragraph, call TextArea.insert(TextArea.length, text) instead.
 
587
      */
 
588
    function append(text)
 
589
    {
 
590
        editor.append(text);
 
591
    }
 
592
 
 
593
    /*!
584
594
      Returns the text position closest to pixel position (x, y).
585
595
 
586
596
      Position 0 is before the first character, position 1 is after the first