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

GetErrorStore

Get the error value

getErrorStore(): Store
const TsForm = createForm({
    name: "user"
});

TsForm.field("name").setError("invalid");
TsForm.field("name").getErrorStore().get()
//invalid

© TS Nano Form