2.0.0 • Published 6 years ago

uc-input v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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