Child pages
  • enum

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A enum type is used for constants properties. That define mostly a set of properties that belong to each other.It is used i plugins

This can be used in plugins or in standard servoy api, the enum type is more typed so it shows in the javascript completion like: enum<SomeType>

This way the constants are typesafe. You can only drop a constant defined as enum<SomeType> in parameter of a method that has that exact enum type like SomeType.UPDATE, SomeType.DELETE which are enum<SomeType> but AnotherType.UPDATE doesn't match.