How to remove side panels and override heading text in the modal edit view?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tothewine
    Active Community Member
    • Jan 2018
    • 373

    How to remove side panels and override heading text in the modal edit view?

    I have this code to create a quick edit view for an entity. I tried to set the parameters but the side panel is always there... I'm pretty confused.

    PHP Code:
           var o = {
                            id: f_id, scope: f_scope,
                            mode: 'edit', header: false,
                            fullFormDisabled: true,
                            sideDisabled: true
                        };
    
                        this.createView('QuickEdit', f_view, o, function (view) {
                            view.nestedViews.edit.sideDisabled = true;
                            view.render();
                        }, true); 
    

    From my understanding the modal edit view has a nested view called edit, that has some of those properties but they are not set to my values.

    I want also to replace the 'Edit: Call' with my own text (or html) but I do not want to create a whole template just for this... any ideas?
    Ps. Is the mode:'edit' option needed?


    Here is a screen capture of what I see...

    .
    Click image for larger version  Name:	2019-01-29_12-39-01.png Views:	1 Size:	45.0 KB ID:	45489

    Last edited by tothewine; 01-29-2019, 12:21 PM.
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hi,

    try this :

    PHP Code:
    this.$el.find('.panel[data-name="default"]').addClass('hidden');
    
    or
    
    this.hidePanel('default');
    
    or
    
    this.$el.find('.panel[data-name="default"]').addClass('hide'); 
    
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      You can hide side panels via UI in the Layout Manager.

      Comment

      • tothewine
        Active Community Member
        • Jan 2018
        • 373

        #4
        It seems that item 's method works and removes the panels('default' and 'attendees'), but the space is still left blank afterwards... I was looking to auto-resize it.

        Maximus since this is a one-shot panel I'd rather replicate the consequences manually with code if you can tell me what hiding side panels in Layout Manager changes at js level.
        Last edited by tothewine; 01-29-2019, 01:15 PM.

        Comment

        Working...