Skip to content

Instantly share code, notes, and snippets.

@bmease
Last active March 16, 2018 19:41
Show Gist options
  • Save bmease/ea7d9fa34ec9d37583d98b97b385b66e to your computer and use it in GitHub Desktop.
Save bmease/ea7d9fa34ec9d37583d98b97b385b66e to your computer and use it in GitHub Desktop.

TimeInput

Props

NameTypeRequiredDefault value
timeStringtrue

Computed

Name
dt
hour
minute
period
display
suggestions

Data

Name
open
value
originalDate

timeInput.update() ⇒ string

Emit the updated datetime.

Kind: instance method of TimeInput Returns: string - - Datetime in ISO format. Access: public

timeInput.toggle() ⇒ undefined

Opens or closes the chooser.

Kind: instance method of TimeInput Returns: undefined - - Returns nothing.

timeInput.togglePeriod() ⇒ undefined

Changes from AM to PM.

Kind: instance method of TimeInput Returns: undefined - - Returns nothing.

timeInput.set(time) ⇒ undefined

Changes to a specific datetime.

Kind: instance method of TimeInput Returns: undefined - - Returns nothing.

Param Type Description
time string Datetime to change to.

timeInput.increment(minutes) ⇒ undefined

Increases the datetime by x minutes.

Kind: instance method of TimeInput Returns: undefined - - Returns nothing.

Param Type Description
minutes number Minutes to increase by.

timeInput.decrement(minutes) ⇒ undefined

Decreases the datetime by x minutes.

Kind: instance method of TimeInput Returns: undefined - - Returns nothing.

Param Type Description
minutes number Minutes to decrease by.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment