Skip to content

unchainedui/input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Base mixin for all input classes

Resources

License

Stars

Watchers

Forks

Packages

No packages published