TextSupport#insertNewline()

insertNewline (event) private

Defined in packages/ember-views/lib/mixins/text_support.js:206

Allows you to specify a controller action to invoke when either the enter key is pressed or, in the case of the field being a textarea, when a newline is inserted. To use this method, give your field an insert-newline attribute. The value of that attribute should be the name of the action in your controller that you wish to invoke.

For an example on how to use the insert-newline attribute, please reference the example near the top of this file.

Parameters:

event Event
doc_EmberJs
2016-11-30 16:53:51
Comments
Leave a Comment

Please login to continue.