mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
📝 doc EditorView::setPlaceholderText
This commit is contained in:
@@ -300,6 +300,11 @@ class EditorView extends View
|
||||
@showIndentGuide = showIndentGuide
|
||||
@resetDisplay()
|
||||
|
||||
# Set the text to appear in the editor when it is empty.
|
||||
#
|
||||
# This only affects mini editors.
|
||||
#
|
||||
# * placeholderText: A {String} of text to display when empty.
|
||||
setPlaceholderText: (placeholderText) ->
|
||||
return unless @mini
|
||||
@placeholderText = placeholderText
|
||||
|
||||
Reference in New Issue
Block a user