Search…
⌃K

Object

Adding an object decorator
@object({
name: 'My Object',
weight: 1
})
class MyObject {
[ ... ]
}

@object(options)

Arguments
  • options { Object } Options object
    • name { String } The Cortex objectName (eg. account, c_foo)
    • weight { Number = 0 } The weight
@object({
name: 'My Object',
weight: 1
})
class MyObject {
[ ... ]
}
Last modified 1yr ago