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

MaskMoney

Mask money text

maskMoney(value: string, moneyOptions?: MoneyOptions)
import TsNanoForm from "./nanoForm";

const { maskMoney } = TsNanoForm;
const masked = maskMoney("123456");
//1.234,56

© TS Nano Form