Expand all

ve.ui.WhitespacePreservingTextInputWidget

Extends

Constructor

new ve.ui.WhitespacePreservingTextInputWidget([config]) #

Text input widget which hides but preserves leading and trailing whitespace

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Properties:
Name Type Attributes Default Description
valueAndWhitespace string optional
''

Initial value and whitespace

limit number optional

Maximum number of characters to preserve at each end

Source:
Text input widget which hides but preserves leading and trailing whitespace

Methods

getValueAndWhitespace() → {string} #

Get the value of text widget, including hidden outer whitespace

Source:

Returns:

Text widget value including whitespace

Type
string
Get the value of text widget, including hidden outer whitespace

setValueAndWhitespace(value) #

Set the value of the widget and extract whitespace.

Parameters:

Name Type Description
value string
Source:
Set the value of the widget and extract whitespace.

setWhitespace(whitespace) #

Set the value of the widget and extract whitespace.

Parameters:

Name Type Description
whitespace Array.<string>

Outer whitespace

Source:
Set the value of the widget and extract whitespace.