x11 Posted October 21, 2020 Author Share Posted October 21, 2020 да, я пытался добавить к стилю " background: gray;", но безуспешно function afterCreate(sender) { var done = new Ext.Button({ text: 'OK', renderTo: sender.getPicker(), style: 'position: absolute; bottom: 0px; width: 100%; background: gray;' }); sender.getSelIds = function(sender) { let Ids = ""; if (sender.getSelection() == null) return ""; sender.getSelection().forEach(function(item) { Ids += item.id + "," }); return Ids.slice(0, -1); }; } т.е. проблема только в двух указанных темах Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 21, 2020 Share Posted October 21, 2020 5 minutes ago, x11 said: т.е. проблема только в двух указанных темах Странно, в моем случае, кнопка не прозрачна. Может быть Вы используете CustomCSS? Quote Link to comment Share on other sites More sharing options...
x11 Posted October 21, 2020 Author Share Posted October 21, 2020 конечно использую, а покажите тех, кто не использует Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 21, 2020 Share Posted October 21, 2020 Quote Link to comment Share on other sites More sharing options...
x11 Posted October 21, 2020 Author Share Posted October 21, 2020 вот я отключил customCSS Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 21, 2020 Share Posted October 21, 2020 Тестируете на девайсе? Quote Link to comment Share on other sites More sharing options...
x11 Posted October 21, 2020 Author Share Posted October 21, 2020 снимок не со смартфона, но на смартфоне то же самое Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 21, 2020 Share Posted October 21, 2020 Quote Link to comment Share on other sites More sharing options...
x11 Posted October 22, 2020 Author Share Posted October 22, 2020 вот пример uniGUI_Layout1.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 22, 2020 Share Posted October 22, 2020 13 hours ago, x11 said: да, я пытался добавить к стилю " background: gray;", но безуспешно Добрый день, Попробуйте добавить: background-color: gray Quote Link to comment Share on other sites More sharing options...
x11 Posted October 22, 2020 Author Share Posted October 22, 2020 не помогло Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 22, 2020 Share Posted October 22, 2020 52 minutes ago, x11 said: Кажется, Вы должны менять здесь: procedure TMainmForm.InitSelect; begin FillSelect; UnimSelect1.JSInterface.JSConfig('multiSelect', [True]); UnimSelect1.JSInterface.JSAddListener('painted', 'function(me){if (me.getValue()) {me.setPlaceholder()} else {me.setPlaceholder(me._placeHolder)}}'); UnimSelect1.JSInterface.JSAddListener('change', 'function(me){if (me.getValue()) {me.setPlaceholder()} else {me.setPlaceholder(me._placeHolder)} ajaxRequest('+ Self.WebForm.JSName +', "selEvents", ["objName="+me.uname, "values="+me.getValue(), "selIds="+me.getSelIds(me)])}'); UnimSelect1.ClientEvents.UniEvents.Values['afterCreate'] := 'function afterCreate(sender) ' + ..... Quote Link to comment Share on other sites More sharing options...
x11 Posted October 22, 2020 Author Share Posted October 22, 2020 ОЙ! как же я забыл, что это в другом месте спасибо Quote Link to comment Share on other sites More sharing options...
x11 Posted October 31, 2020 Author Share Posted October 31, 2020 Хорошо, если бы в заголовках тем был чекбокс, что проблема решена, чтобы можно было видеть/искать нерешенные проблемы. Чтоб можно было видеть в списке тем, что тот или иной вопрос уже решен. Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 Подскажите, как то же самое проделать для десктопа с фреймом? этот код для мобильной версии: procedure TfmmParentEditObject.InitPrm; begin FillPrm;//наполняю список selPrm.JSInterface.JSConfig(constMultiSelect, [True]); selPrm.JSInterface.JSConfig('valueField', ['id']); selPrm.JSInterface.JSAddListener(constPainted, funcPlaceholderPained); selPrm.JSInterface.JSAddListener('change', 'function(me){if (me.getValue()) {me.setPlaceholder()} else {me.setPlaceholder(me._placeHolder)} ajaxRequest('+ Self.WebForm.JSName +', "selEvents", ["objName="+me.uname, "values="+me.getValue(), "selIds="+me.getSelIds(me)])}'); selPrm.ClientEvents.UniEvents.Values[constAfterCreate] := 'function afterCreate(sender) ' + '{' + ' var done = new Ext.Button({' + ' text: ''OK'',' + ' renderTo: sender.getPicker(),' + ' style: ''position: absolute; bottom: 0px; width: 100%; background-color: gray;''' + ' });' + ' sender.getSelIds = function(sender) {' + ' let Ids = "";' + ' if (sender.getSelection() == null) return "";' + ' sender.getSelection().forEach(function(item) {' + ' Ids += item.id + ","' + ' });' + ' return Ids.slice(0, -1);' + ' };' + ' createToolTip(sender, ' + QuotedStr(StrToJS(constPrm)) + '); ' + '}'; end; Сейчас ругается на Self.WebForm.JSName Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2021 Share Posted March 31, 2021 1 hour ago, x11 said: Подскажите, как то же самое проделать для десктопа с фреймом? UniCheckComboBox, UniTagField ? Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 Мне нужен мультивыбор с ID и Name, как это вы мне подсказали для мобильной версии TunimSelect. Только теперь для для десктопа на базе фрейма. Заполнить UniCheckComboBox у меня получается, а как программно поставить галочку у конкретных ID и как потом считать те отмеченные пользователем пункты опять же по ID Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2021 Share Posted March 31, 2021 \FMSoft\Framework\uniGUI\Demos\Desktop\CheckComboBox ? Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 и где там ID у итемов CheckComboBox`а? Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 2 hours ago, x11 said: ajaxRequest('+ Self.WebForm.JSName +', "selEvents", посмотрите свой пример, пожалуйста, может его можно преобразовать к использованию для фрейма и десктопа? Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 procedure TfrdParentEditObj.InitPrm; begin FillPrm; //comboPrm.JSInterface.JSConfig(constMultiSelect, [True]); comboPrm.JSInterface.JSConfig('valueField', ['id']); // comboPrm.JSInterface.JSAddListener(constPainted, funcPlaceholderPained); comboPrm.JSInterface.JSAddListener('change', 'function(me){ ajaxRequest('+ fmMain.WebForm.JSName +', "selEvents", ["objName="+me.uname, "values="+me.getValue(), "selIds="+me.getSelIds(me)])}'); comboPrm.ClientEvents.UniEvents.Values[constAfterCreate] := 'function afterCreate(sender) ' + '{' + // ' var done = new Ext.Button({' + // ' text: ''OK'',' + // ' renderTo: sender.getPicker(),' + // ' style: ''position: absolute; bottom: 0px; width: 100%; background-color: gray;''' + // ' });' + ' sender.getSelIds = function(sender) {' + ' let Ids = "";' + ' if (sender.getSelection() == null) return "";' + ' sender.getSelection().forEach(function(item) {' + ' Ids += item.id + ","' + ' });' + ' return Ids.slice(0, -1);' + ' };' + '}'; end; вот такая ошибка помогите исправить спасибо Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2021 Share Posted March 31, 2021 9 minutes ago, x11 said: вот такая ошибка помогите исправить Простите, у нас был тестовый случай!? Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 13 minutes ago, Sherzod said: Простите, у нас был тестовый случай!? ну вот, я кое что сделал, но оно не открывается uniGUI_Multicheck.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2021 Share Posted March 31, 2021 Я проанализирую. 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted April 8, 2021 Author Share Posted April 8, 2021 не получилось? 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.