~/talk

Building Fast and Semantic Input Masks in VueJS

Talkat VueConf US 2019 · on Wednesday, 2019-03-27· [frontend-architecture, vue]
slides:none on file

Builds a working currency input mask for Vue that keeps the last two digits as cents and inserts thousands separators using simple utilities wearMask and removeMask plus regex. Validation uses keydown for validation because key codes are available there and formatting runs on input for formatting so the code unformats then reformats the value. Implements a reusable renderless component and a v-mask directive (bind and componentUpdated) and shows a computed getter/setter pattern with v-model and experimental composition hooks.

AI-written summary · about

  1. 0:00Introduction
  2. 2:53Requirements
  3. 3:25Input Events
  4. 11:29The Role of Reactivity
  5. 14:41Reusable Components
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.