Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
Extjs6 Cómo manejar el desbordamiento de los elementos del encabezado del panel

Quiero manejar el desbordamiento de los elementos del encabezado del panel. Cuando la cantidad de botones excede el ancho de la pantalla, el ícono de colapso y los botones no están visibles. Quiero hacer que el encabezado se pueda desplazar o mostrar los elementos de desbordamiento en un menú desplegable.

 Ext.application({ name : 'Fiddle', launch : function() { Ext.onReady(function () { Ext.create('Ext.panel.Panel', { width: 200, height: 50, collapsible: true, renderTo: Ext.getBody(), title: 'title', layout : 'hbox', header: { title: { text: 'title', flex: undefined }, items: [{ xtype: 'button', text: 'test', margin: '0 10' },{ xtype: 'button', text: 'test', margin: '0 10' },{ xtype: 'button', text: 'test', margin: '0 10' },{ xtype: 'button', text: 'test', margin: '0 10' },{ xtype: 'button', text: 'test', margin: '0 10' },{ xtype:'tbfill' }] } }); }); } });

Por favor refiérase a la imagen de abajo-
ingrese la descripción de la imagen aquí

Debe tener un aspecto como este-
ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede obtener el resultado deseado utilizando Ext.toolbar.Toolbar , tiene una configuración overflowHandler que puede establecer en el menu . Prueba esto:

 Ext.application({ name: 'Fiddle', launch: function () { Ext.onReady(function () { Ext.create('Ext.toolbar.Toolbar', { width: 200, renderTo: Ext.getBody(), overflowHandler: 'menu', items: [{ xtype: 'component', html: 'title' },{ xtype: 'button', text: 'test1' }, { xtype: 'button', text: 'test2' }, { xtype: 'button', text: 'test3' }, { xtype: 'button', text: 'test4' }, { xtype: 'button', text: 'test5' }] }); }); } });
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!