uc-input

2.0.0 • Public • Published

Unchained UI

Input

NPM Version NPM Downloads

Base mixin for all input classes

Usage

Check the input-field and input-contenteditable for more information

Interface

el

Root HTMLElement

input

Input HTMLElement

setValue(val)

Sets the current value to the DOM

getValue()

Gets the current value from the DOM

setCarret(pos)

Sets the position of the carret

getCarret()

Gets the position of the carret

resetCarret(toBegin)

Sets the position of the carret to the end of the value. If toBegin is true, the sets the position to the begining

setPlaceholder(placeholder)

Optional. Sets the placeholder value to placeholder

removePlaceholder

Optional. Removes the placeholder

License MIT

© velocityzen

Package Sidebar

Install

npm i uc-input

Weekly Downloads

61

Version

2.0.0

License

MIT

Unpacked Size

8.17 kB

Total Files

6

Last publish

Collaborators

  • velocityzen