Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Latest commit

 

History

History
55 lines (28 loc) · 1.07 KB

File metadata and controls

55 lines (28 loc) · 1.07 KB

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