Skip to content

Commit

Permalink
Update input.coffee
Browse files Browse the repository at this point in the history
add letterSpacing option
  • Loading branch information
jorgemartins authored Aug 14, 2018
1 parent bdd95f5 commit f07554f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions input.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class exports.Input extends Layer
options.tabIndex ?= 0
options.textarea ?= false
options.disabled ?= false
options.letterSpacing ?= 0

super options

Expand All @@ -127,6 +128,7 @@ class exports.Input extends Layer
@input.style.fontFamily = options.fontFamily
@input.style.color = options.textColor
@input.style.fontWeight = options.fontWeight
@input.style.letterSpacing = options.letterSpacing

@input.value = options.text
@input.type = options.type
Expand Down

0 comments on commit f07554f

Please sign in to comment.