Skip to main content
Version: 1.1.2

EraFieldOptions

Syntax

object {
  ca?,
  width?,
  context?
}

Properties

  • ca?: CalendarType
    • Override the calendar. The argument will be converted to the requested calendar before formatting.
  • width?: EraWidthType
    • Width of fields to return
  • context?: ContextType
    • Specify the context in which the string will be display

Defaults

{
width: 'names',
context: 'middle-of-text'
}
  • Calendar system default is determined by the locale.

References