Child pages
  • enum
Skip to end of metadata
Go to start of metadata

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

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.

  • No labels