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

292
Views
¿Cómo puedo hacer que los textos se puedan resaltar en ExtJs?

Todavía estoy encontrando mi camino en Extjs, actualmente estoy mostrando datos de texto en una interfaz de usuario como esta:

 reference: 'agentLogGrid', store: { xclass: 'Ext.data.ChainedStore', source: 'LogViewSource', }, itemConfig: { viewModel: true, }, columns: [{ text: 'Timestamp', xtype: 'templatecolumn', tpl: '{timestamp}', flex: 1, }, { text: 'Data', xtype: 'templatecolumn', tpl: '{data}', flex: 1, }],...

Pero los textos no se pueden resaltar, eso significa que no puedo resaltarlos y copiarlos, o seleccionarlos y copiarlos. Cuando paso el mouse por encima, el puntero lo ve como un enlace, pero no puedo resaltarlo ni seleccionarlo. ¿Cómo puedo hacer que solo los {datos} sean resaltables?

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

0

En el kit de herramientas clásico, puede usar la propiedad enableTextSelection . Algo como esto:

 Ext.application({ name: 'Fiddle', launch: function () { Ext.create('Ext.data.Store', { storeId: 'employeeStore', fields: ['firstname', 'lastname', 'seniority', 'department'], groupField: 'department', data: [{ firstname: "Michael", lastname: "Scott", seniority: 7, department: "Management" }, { firstname: "Dwight", lastname: "Schrute", seniority: 2, department: "Sales" }, { firstname: "Jim", lastname: "Halpert", seniority: 3, department: "Sales" }, { firstname: "Kevin", lastname: "Malone", seniority: 4, department: "Accounting" }, { firstname: "Angela", lastname: "Martin", seniority: 5, department: "Accounting" }] }); Ext.create('Ext.grid.Panel', { title: 'Column Template Demo', store: Ext.data.StoreManager.lookup('employeeStore'), columns: [{ text: 'Full Name', xtype: 'templatecolumn', tpl: '{firstname} {lastname}', flex: 1 }, { text: 'Department (Yrs)', xtype: 'templatecolumn', tpl: '{department} ({seniority})' }], // USE viewConfig enableTextSelection property viewConfig: { enableTextSelection: true }, height: 200, width: 300, renderTo: Ext.getBody() }); } });
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!