limestone/Input
Popup style inputs for text and numbers.
Members
Section titled “Members ”Input Component
Section titled “Input   Component ”Provides an input in the form of a popup.
Usage:
<Input
onComplete={this.handleInputComplete}
placeholder="Placeholder"
subtitle="TitleBelow"
title="Title"
/>By default, Input maintains the state of its value property. Supply the defaultValue
property to control its initial value. If you wish to directly control updates to the
component, supply a value to value at creation time and update it in response to onChange
events.
Extends:
limestone/Inputlimestone/Input.InputBase
InputBase Component
Section titled “InputBase   Component ”Base component for providing text input in the form of a popup.
Properties
disabled
Section titled “disabled”Disables the button that activates the input popup.
placeholder
Section titled “placeholder”Text displayed when value is not set.
Default: '-'The size of the input field.
Default: 'small'Type of the input.
Default: 'text'The value of the input.
InputDecorator Higher-Order Component
Section titled “InputDecorator   Higher-Order Component ”Limestone specific item behaviors to apply to limestone/Inputlimestone/Input.InputBase.
Includes:
ui/Toggleableui/Toggleable.Toggleable
Includes:
ui/Changeableui/Changeable.Changeable
Includes:
limestone/Skinnablelimestone/Skinnable.Skinnable
InputField Component
Section titled “InputField   Component ”A Spottable, Limestone styled input component with embedded icon support.
By default, InputField maintains the state of its value property. Supply the defaultValue
property to control its initial value. If you wish to directly control updates to the component,
supply a value to value at creation time and update it in response to onChange events.
Extends:
limestone/Inputlimestone/Input.InputFieldBase
Wrapped with:
ui/Changeableui/Changeable.Changeable
Wrapped with:
spotlight/Spottablespotlight/Spottable.Spottable
Wrapped with:
limestone/Skinnablelimestone/Skinnable.Skinnable
Properties
autoFocus
Section titled “autoFocus”Focuses the internal input when the component gains 5-way focus.
By default, the internal input is not editable when the component is focused via 5-way and must be selected to become interactive. In pointer mode, the input will be editable when clicked.
Default: falsedisabled
Section titled “disabled”Applies a disabled style and prevents interacting with the component.
Default: falsedefaultValue
Section titled “defaultValue”Sets the initial value.
dismissOnEnter
Section titled “dismissOnEnter”Blurs the input when the "enter" key is pressed.
Default: falseonActivate
Section titled “onActivate”Called when the internal input is focused.
onDeactivate
Section titled “onDeactivate”Called when the internal input loses focus.
onSpotlightDisappear
Section titled “onSpotlightDisappear”Called when the component is removed when it had focus.
spotlightDisabled
Section titled “spotlightDisabled”Disables spotlight navigation into the component.
Default: falseInputFieldBase Component
Section titled “InputFieldBase   Component ”A Limestone styled input component.
It supports start and end icons, but it does not support Spotlight. Apps should use limestone/Inputlimestone/Input.InputField.
Properties
announce
Section titled “announce”Passed by AnnounceDecorator for accessibility.
caretToEndOnFocus
Section titled “caretToEndOnFocus”Moves the caret to the end of the text when the input receives focus.
Default: falsedisabled
Section titled “disabled”Disables InputField and becomes non-interactive.
Default: falsedismissOnEnter
Section titled “dismissOnEnter”Blurs the input when the "enter" key is pressed.
Default: falseiconAfter
Section titled “iconAfter”The icon to be placed at the end of the input.
iconBefore
Section titled “iconBefore”The icon to be placed at the beginning of the input.
invalid
Section titled “invalid”Indicates limestone/Inputlimestone/Input.InputFieldBase.value is invalid and shows limestone/Inputlimestone/Input.InputFieldBase.invalidMessage, if set.
Default: falseinvalidMessage
Section titled “invalidMessage”The tooltip text to be displayed when the input is limestone/Inputlimestone/Input.InputFieldBase.invalid.
If this value is falsy, the tooltip will be shown with the default message.
Default: 'Please enter a valid value.'marqueeContent
Section titled “marqueeContent”Wraps the input's value/placeholder display in a marquee.
Default: falseonBeforeChange
Section titled “onBeforeChange”Called before the input value is changed.
The change can be prevented by calling preventDefault on the event.
onBlur
Section titled “onBlur”Called when blurred.
onChange
Section titled “onChange”Called when the input value is changed.
The event payload includes the current value as well as a stopPropagation() method
which may be called to stop the original onChange event from the <input> from
bubbling.
onClick
Section titled “onClick”Called when clicked.
onFocus
Section titled “onFocus”Called when focused.
onKeyDown
Section titled “onKeyDown”Called when a key is pressed down.
placeholder
Section titled “placeholder”Text to display when limestone/Inputlimestone/Input.InputFieldBase.value is not set.
Default: ''The size of the input field.
Default: 'small'The type of input.
Accepted values correspond to the standard HTML5 input types.
Default: 'text'The value of the input.
InputFieldDecorator Higher-Order Component
Section titled “InputFieldDecorator   Higher-Order Component ”Limestone specific item behaviors to apply to limestone/Inputlimestone/Input.InputFieldBase.
Includes:
ui/Changeableui/Changeable.Changeable
Includes:
limestone/Skinnablelimestone/Skinnable.Skinnable
InputPopup Component
Section titled “InputPopup   Component ”Provides an input popup without button.
Usage:
<InputPopup
open={this.state.open}
onComplete={this.handleInputPopupComplete}
placeholder="Placeholder"
subtitle="Subtitle"
title="Title"
/>By default, InputPopup maintains the state of its value property. Supply the defaultValue
property to control its initial value. If you wish to directly control updates to the
component, supply a value to value at creation time and update it in response to onChange
events.
Extends:
limestone/Inputlimestone/Input.InputPopupBase
InputPopupBase Component
Section titled “InputPopupBase   Component ”Base component for providing text input in the form of a popup without button.
Properties
announce
Section titled “announce”Passed by AnnounceDecorator for accessibility.
backButtonAriaLabel
Section titled “backButtonAriaLabel”Sets the hint string read when focusing the back button.
Default: 'go to previous'Buttons to be included under the component.
Typically, up to 3 buttons are used.
Customize component style
Initial value of the input.
This value is used for setting the defaultValue of the InputField.
disabled
Section titled “disabled”Disables the input popup.
inputFieldSpotlightId
Section titled “inputFieldSpotlightId”Sets spotlightId to InputField.
invalid
Section titled “invalid”Indicates the value is invalid and shows limestone/Inputlimestone/Input.InputPopupBase.invalidMessage, if set.
invalidMessage
Section titled “invalidMessage”The tooltip text to be displayed when the input is limestone/Inputlimestone/Input.InputPopupBase.invalid.
If this value is falsy, the tooltip will be shown with the default message.
Default: 'Please enter a valid value.'length
Section titled “length”Set the length of number input field.
Sets the amount of numbers this field will collect. Any number between 1 and 6
(inclusive) will render individual number cells, greater than 6 will render a single box
with numbers in it. This only has an effect on 'number' and 'passwordnumber' type
and when numberInputField is 'auto'.
This value will override minLength and maxLength.
marqueeInputField
Section titled “marqueeInputField”Wraps the InputField's value display in a marquee.
maxLength
Section titled “maxLength”The maximum length of number input fields.
Overridden by length value.
minLength
Section titled “minLength”The minimum length of number input fields.
Overridden by length value.
When smaller than maxLength, number type inputs will show a submit button and will not
auto-submit when the length reaches maxLength. Defaults to the maxLength value.
noBackButton
Section titled “noBackButton”Omits the back button.
noSubmitButton
Section titled “noSubmitButton”Omits the submit button.
The type of numeric input to use.
The default is to display separated digits when length is less than 7. If field is
set, a standard InputField will be used instead of the normal number input.
This has no effect on other limestone/Inputlimestone/Input.InputPopupBase.type.
Default: 'auto'onBeforeChange
Section titled “onBeforeChange”Called before the input value is changed.
The change can be prevented by calling preventDefault on the event.
onChange
Section titled “onChange”Called when the input value is changed.
onClose
Section titled “onClose”Called when the popup is closed.
onComplete
Section titled “onComplete”Called when input is complete.
onOpenPopup
Section titled “onOpenPopup”Called when the popup is opened.
Opens the popup.
placeholder
Section titled “placeholder”Text displayed when value is not set.
popupAriaLabel
Section titled “popupAriaLabel”The "aria-label" for the popup when opened.
Type of popup.
Default: 'fullscreen'Size of the input field.
Default: 'small'subtitle
Section titled “subtitle”Subtitle below the title of popup.
Default: ''Title text of popup.
Default: ''Type of the input.
Default: 'text'