Announcement

Collapse
No announcement yet.

Override and extended

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Override and extended

    Hi,
    I try to update a js function like in : /client/custom/src/views/stream/note.js
    with :
    Espo.define('custom:views/stream/note', 'views/stream/note', function (Dep) { return Dep.extend({ init: function () { this.createField('createdAt', null, null, 'views/fields/datetime'); Dep.prototype.init.call(this);
    I want to execute the parent init but just change 'views/fields/datetime-short' with 'views/fields/datetime' but not rewrite all the code above.
    How Can I do it ?

    Thanks
Working...
X