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

x/netlify_cms_config/fields/number.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/number.ts";

Constructors

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

Properties

widget: string

Methods

default(value: string | number): this

Accepts string or number value. Defaults to empty string

max(value: number): this

Accepts a number for maximum value accepted

min(value: number): this

Accepts a number for minimum value accepted

step(value: number): this

Accepts a number for stepping up/down values in the input.

valueType(value: ValueType): this

Accepts int or float. Any other value results in saving as a string