Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netlify_cms_config/fields/object.ts>default

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

Constructors

new
default(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