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
  • GetMasked
  • GetUnmasked
  • GetMoneyMasked
  • GetMoneyUnmasked
  • GetError
  • GetValues
  • GetErrors
  • SetValue
  • SetMasked
  • SetMoneyMasked
  • SetError
  • SubscribeValue
  • SubscribeError
  • SubscribeAllValues
  • SubscribeAllErrors

API Store

  • CreateStore
  • Set
  • Get
  • Emit
  • Subscribe

Get

Returns the value of a store

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

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

© TS Nano Form