Ts Nano FormDocsExamples

Getting Started

  • Introduction
  • Quick Start
  • Form
  • Store
  • Mask
  • Money

Configuration

  • Options

API Nano Form

  • NanoForm
  • CreateForm
  • GetForm
  • Mask
  • Unmask
  • MaskMoney
  • UnmaskMoney
  • GetPlaceholder

API Form

  • Submit
  • Field
  • GetIsValid
  • GetValue
  • GetValueStore
  • GetMasked
  • GetUnmasked
  • GetMoneyMasked
  • GetMoneyUnmasked
  • GetError
  • GetErrorStore
  • GetValues
  • GetErrors
  • SetValue
  • SetMasked
  • SetUnmasked
  • SetMoneyMasked
  • SetError
  • SubscribeValue
  • SubscribeError
  • SubscribeAllValues
  • SubscribeAllErrors
  • Reset
  • ResetValues
  • ResetErrors
  • ClearValues

API Store

  • CreateStore
  • Set
  • Get
  • Emit
  • Subscribe

Set

Set the value of the store

set: (newValue: any) => void;
import { createStore } from "ts-nano-form";

const store = createStore();
store.set("123");
store.get("123");
// 123

© TS Nano Form