VueJS Generators
GitHubNPMJSFiddleCodePen
1.0.0
1.0.0
  • Getting Started
  • Installation
  • Usage
    • Styling
  • Component
    • Schema
    • Model
    • Options
    • Events
  • Fields
    • Field Properties
      • Inside Buttons
    • Core Fields
      • checkbox
      • checklist
      • input
      • label
      • radios
      • select
      • submit
      • textArea
    • Optional Fields
      • cleave
      • dateTimePicker
      • googleAddress
      • image
      • masked
      • noUiSlider
      • pikaday
      • selectEx
      • rangeSlider
      • spectrum
      • staticMap
      • switch
      • vueMultiSelect
    • Custom Fields
  • Groups
  • Validation
    • Built in Validators
    • Custom Validators
    • Handling Validation Events
Powered by GitBook
On this page
  • Special properties of field
  • Usage

Was this helpful?

  1. Fields
  2. Core Fields

label

This is a text label for non-editable values (e.g. timestamp, creation time...etc)

Special properties of field

There is no any special properties.

Usage

{
    type: "label",
    label: "Created",
    model: "created"
}

Or you can format the value with moment:

{
    type: "label",
    label: "Created",
    model: "created",
    get: function(model) { 
      return model && model.created ? moment(model.created).format("LLL") : "-"; 
    }
}
PreviousinputNextradios

Last updated 6 years ago

Was this helpful?