mhmda Posted May 22, 2020 Author Share Posted May 22, 2020 15 minutes.... Quote Link to comment Share on other sites More sharing options...
mhmda Posted May 22, 2020 Author Share Posted May 22, 2020 hi 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted June 30, 2020 Share Posted June 30, 2020 error: c is not a constructor Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 30, 2020 Share Posted June 30, 2020 5 minutes ago, x11 said: error: c is not a constructor Какая платформа используется? Какой компонент? Скорее всего, используется "десктопный" плагин... Quote Link to comment Share on other sites More sharing options...
x11 Posted June 30, 2020 Share Posted June 30, 2020 Windows 10 x64, TUnimDBListGrid, uniGui 1.90.0.1531, Chrome 83. Quote Link to comment Share on other sites More sharing options...
x11 Posted June 30, 2020 Share Posted June 30, 2020 вот полностью мой код function beforeInit(sender, config){ config.loadingText = 'загрузка...'; config.emptyText='даних немає'; config.grouped = false; config.itemTpl = new Ext.XTemplate('<table style="width:100%; white-space:nowrap; vertical-align:middle;">'+ '<tr>'+ '<td style="color:#2c81aa"><i class="fas fa-phone"></i> Телефон:</td><td style="color:#2c81aa"><a href="tel://{1}" target="_blank">{6}</a></td>'+ '</tr>'+ '<tr>'+ '<td style="padding-top:3px;"><i class="fas fa-user-tag"></i> Контакт:</td><td style="padding-top:3px;">{2}</td>'+ '</tr>'+ '<tr>'+ '<td style="padding-top:3px;"><i class="fab fa-viber"></i> Вайбер:</td><td style="padding-top:3px;"><a href="{[this.ReplaceViber(values, 3)]}" target="_blank">{6}</a></td>'+ '</tr>'+ '<tr>'+ '<td style="padding-top:3px;"><i class="fab fa-telegram"></i> Телеграм:</td><td style="padding-top:3px;"><a href="https://t.me/{[this.DeleteAt(values, 5)]}" target="_blank">{5}</a></td>'+ '</tr>'+ '</table>' , { DeleteAt: function(values, idx){ return values[idx].replace('@', ''); }, ReplaceViber: function(values, idx){ if (values[idx] == false ){ return 'немає' } else{ return 'viber://add?number=' + values[1] }; } } ); config.clickdeletetel = function(btn,indx,e){ fmmParentAparts.dbgTlf.mask('wait...'); ajaxRequest(fmmParentAparts.dbgTlf,'clickdeletetel',['actn='+btn,'indx='+indx.toString()]); }; config.groupingFeature = Ext.create('Ext.grid.feature.Grouping',{ groupHeaderTpl:new Ext.XTemplate('{[this.getGroupTitle(values.rows[0])]}', { getGroupTitle: function(values) { return '<div class="swgrdactnprintmv" onclick="fmmParentAparts.dbgTlf.clickdeletetel(\'view\',' + values.data[0]+',event);return false;"></div>' } }) }); } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 30, 2020 Share Posted June 30, 2020 3 minutes ago, Sherzod said: Какая платформа используется? Имел в виду, десктопное или мобильное приложение. ОК Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 30, 2020 Share Posted June 30, 2020 1 minute ago, x11 said: Ext.grid.feature.Grouping Но этот плагин используется для десктопных приложений. Quote Link to comment Share on other sites More sharing options...
x11 Posted June 30, 2020 Share Posted June 30, 2020 т.е. данный вариант (данный пример) переделать для компоненты TUnimDBListGrid не получится? У меня есть другой вариант, вы мне когда-то написали просто я хотел иметь ещё один вариант создания кнопки Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 30, 2020 Share Posted June 30, 2020 6 minutes ago, x11 said: У меня есть другой вариант, вы мне когда-то написали Да, но, там кажется вопрос был решен!? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 30, 2020 Share Posted June 30, 2020 8 minutes ago, x11 said: т.е. данный вариант (данный пример) переделать для компоненты TUnimDBListGrid не получится? Я еще не смотрел что за вариант, и чем отличается... Quote Link to comment Share on other sites More sharing options...
x11 Posted June 30, 2020 Share Posted June 30, 2020 Да, решен. Просто я подумал, что запасной вариант не помешал бы 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.