Override and extended

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jurnet
    Member
    • Aug 2019
    • 35

    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...