Announcement

Collapse
No announcement yet.

Full size modal

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

  • Full size modal

    Hi,

    when I create a modal view, the view is shown at the right. Is it somehow possible to have the view centered or full width? (Espo CRM 8.3.6)

    Thanks

  • #2
    Modern theme has centered modals:

    A modern theme for EspoCRM. Contribute to novastream/Modern-Theme development by creating an account on GitHub.


    you could copy the css code to have all modals centered in every theme or you could just use this theme

    or you can also directly the create view in full screen:

    PHP Code:
    define('whatsapp:WhatsApp-handler', ['action-handler'], function (Dep) {

       return 
    Dep.extend({

          
    actionNewLead: function() {
            var 
    attributes = {};
            
    attributes.firstName this.view.model.get('name');
            
    attributes.phoneNumber this.view.model.get('from');
            
    attributes.whatsAppId this.view.model.get('id');
            
    attributes.whatsAppName this.view.model.get('name');
            
    attributes.source "WhatsApp";
            var 
    scope 'Lead'
            
    var router this.getRouter();
            
    router.dispatch(scope'create', {
            
    attributesattributes,
     });
     },

            
    initNewLead: function () {
                
    this.controlButtonVisibility();

                
    this.view.listenTo(
                    
    this.view.model,
                    
    'change:leadId',
                    
    this.controlButtonVisibility.bind(this)
                );
            },

            
    controlButtonVisibility: function () {
                if (
    this.view.model.get('leadId') === null) {
                    
    this.view.showHeaderActionItem('NewLead');

                    return;
                }

                
    this.view.hideHeaderActionItem('NewLead');
            },
       });
    });
    ​ 
    Last edited by Kharg; 08-30-2024, 10:26 AM.

    Comment

    Working...
    X