Skip to main content
Module

x/netlify_cms_config/mod.ts>Object

Netlify CMS config generator
Latest
class Object
extends Field<Options>
import { Object } from "https://deno.land/x/netlify_cms_config@v0.3.2/mod.ts";

Constructors

new
Object(label: string, config?: Options)

Properties

widget: string

Methods

collapsed(value?): this

If added and labeled true, collapse the widget's content by default

default(value: Record<string, unknown>): this

You can set defaults within each sub-field's configuration

fields(value: Field[]): this

A nested list of widget fields to include in your widget

summary(value: string): this

Specify the label displayed when the object is collapsed

toJSON(): Record<string, unknown>

Return the field as JSON

Static Properties

defaults: Options