Parameters
value[str]
(The default text to be displayed and replaced with if the value is ever blank or just a single space)
defaultTextFocus[erase|select|nothing|debug|auto]
Will fire when default text is in place and the input is focused on
defaultTextBlur[revert|nothing|debug|auto]
Will fire when default text is in place and the input is focused on
userTextFocus[erase|select|debug|auto]
Fires when the input field is focused on without the default text as the value
userTextBlur[revert|debug|auto]
Fires when the default text is not there and the input field is blurred
addFromLabel[selector]
This will override the “value” option and is nothing by default. It will replace the text in the input field with the text in a label you target.
hideLabel[boolean]
True by default, this will hide the label you choose with the addFromLabel option
resetOnLoad[boolean]
True by default, will erase whatever content is in the input whenever the page is hit. for example, if you type “Hello world” and refresh the page with this false, “Hello world” will still be there. However, when true (default), this will be erased and replaced with the default text.
In Development (next release)
addClasses[boolean]
True by default, this will add special classes for when the default text is visible and when user written text is visible to the input field. Default classes are: dynoBoxDefault and dynoBoxUser.
defaultTextClass[str]
The class(es) you want to apply to the input field when the default text is in place. Default is dynoBoxDefault and only applicable if addClasses is true.
userTextClass[str]
The class(es) you want to apply to the input field when the user written text is in place. Default is dynoBoxUser and only applicable if addClasses is true.