Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- properties: {
- title: {
- type: 'string',
- maxLength: 140,
- conditional: {
- optional: true,
- when: function () { // The 'optional' attribute only takes effect if this function returns true
- return !this.published; // So the title is only optional if the article hasn't been published.
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment