Announcement

Collapse
No announcement yet.

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

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

  • 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 = {
                            
    idf_idscopef_scope,
                            
    mode'edit'headerfalse,
                            
    fullFormDisabledtrue,
                            
    sideDisabledtrue
                        
    };

                        
    this.createView('QuickEdit'f_viewo, 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.

  • #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'); 

    Comment


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

      Comment


      • #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...
        X