Search…
Object
Adding an object decorator
1
@object({
2
name: 'My Object',
3
weight: 1
4
})
5
class MyObject {
6
7
[ ... ]
8
9
}
Copied!

@object(options)

Arguments
  • options { Object } Options object
    • name { String } The Cortex objectName (eg. account, c_foo)
    • weight { Number = 0 } The weight
1
@object({
2
name: 'My Object',
3
weight: 1
4
})
5
class MyObject {
6
7
[ ... ]
8
9
}
Copied!
Last modified 2mo ago
Copy link