🌊
jsf
  • About KalmiaJSF
  • Setup
  • Architecture
  • Contributing
  • Changelog
  • Guides
    • Cheat Sheet
  • Examples
    • Demo example
    • Basic examples
    • Kitchen Sink example
    • Charts example
  • Schema
    • Intro to Schema
    • Prop types
      • String
      • Boolean
      • Number & Integer
      • Object
      • Array
      • Date
      • Id
      • Null
      • Ref
      • Binary
    • Prop options
      • Disabling property
      • On prop init actions
      • Persist
      • On value change
      • On user value change
    • Handlers
      • Color picker
    • Creating custom handler
      • Working with arrays
    • Value provider
  • Validation
    • Custom validation
    • Eval
  • LAYOUT
    • Intro to Layout
    • Layout options
      • Show & hide
      • On click action
  • INTERFACES
    • Value Options
  • Form
    • Form data
  • OTHER
    • Events
    • Lifecycle hooks
    • Notifications support
  • PAGES & COMPONENTS
    • Page
    • Component
  • THEMING
    • Creating new theme variant
  • BUILDER
    • Shortcuts
  • Help
    • FAQ
Powered by GitBook
On this page
  • Global
  • Form related
  • Form related only available inside schema
  • Form related only available inside layout

Was this helpful?

Export as PDF
  1. Validation

Eval

Global

Variable or function

Description

$moment

Moment lib.

_

Lodash lib.

$locale: string

Example: en, sl, ...

$format.currency(value: number, currency = 'EUR'): string

Format value helper.

$format.number

Format value helper.

$format.date

Format value helper.

$format.dateTime

Format value helper.

Form related

Variable or function

Description

$val

Form value.

$form

JsfBuilder (main class)

$builder

Root prop builder

$builder.handler

Handler builder if set

$objects

Executed from $evalObjects

$layoutState

$i18n

Translate value.

$setValue

Set value on form.

$patchValue

Patch value on form.

$clipboard

Clipboard util.

Returns value of given prop. Supports sibling resolution (abstract array paths) for example: $valueOf('a.b[].c')

Returns index of given item. Supports sibling resolution (abstract array paths) for example: $indexOf('a.b[].c')

Returns instance of prop builder. Supports sibling resolution (abstract array paths) for example: $instanceOf('a.b[].c')

Form related only available inside schema

Variable or function

Form related only available inside layout

Variable or function

PreviousCustom validationNextIntro to Layout

Last updated 4 years ago

Was this helpful?

$valueOf(path: string)

$indexOf(path: string)

$instanceOf(path: string)

🆕
🆕
🆕