Skip to main content
Module

x/netlify_cms_config/mod.ts>Code

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

Constructors

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

Properties

widget: string

Methods

Allows syntax to be changed

defaultLanguage(language: string): this

Default language to use

keys(keys: { code: string; lang: string; }): this

Sets key names for code and lang if outputting an object. Defaults to { code: 'code', lang: 'lang' }

outputCodeOnly(output?): this

Set to true to output the string value only.

Static Properties

defaults: Options