Show Posts
|
Pages: [1] 2 3 ... 7
|
2
|
General Category / EasyUI for jQuery / layout panel expand to maxWidth
|
on: April 29, 2024, 01:24:41 AM
|
$('#dlg .layout').layout('add',{ region: 'east' , width: 150 , minWidth: 150 , maxWidth: 250
$('#dlg .layout').layout('expand','east') - expand panel only to "default"(initial or last) width. How to expand to maxWidth ?
|
|
|
5
|
General Category / EasyUI for jQuery / [SOLVED] .combotree textField - didnt work
|
on: March 24, 2023, 07:13:11 PM
|
textField string The underlying data field name to bind to this ComboTree. Available since version 1.5.2. $('#Label').combotree({ url: '?getLabels' , idField: 'ID' , textField: 'Name' //, valueField: 'Name' //, treeField: 'Name' ... });
json and result in screenshots
|
|
|
6
|
General Category / EasyUI for jQuery / $.messager.prompt with miltiline input
|
on: March 01, 2023, 11:18:23 PM
|
$.messager.prompt({ title: ' new Note', msg: '', fn: function(r){ if (r){ alert(r);} }); $(".messager-window .messager-input") .textbox({width:260,height:100,multiline: true}) .textbox('textbox').focus();
PROBLEM IS : the 'r' returns filtered value without "\n" jQ hooks didn't work $.valHooks.textarea = { get: function( elem ) { return elem.value.replace( /\r?\n/g, "\n" ); } };
Additional: how to do to "return false" in fn(r) to prevent to close prompt ?
|
|
|
10
|
General Category / EasyUI for jQuery / Re: .datagrid('selectRecord',idValue) and .datagrid onSelect event
|
on: September 01, 2022, 09:29:33 AM
|
ok. maybe problem in call selectRecord from onLoadSuccess how select record after loading? only via setTimeout ? $('#dg').datagrid({ ... , idField: 'itemid' , onLoadSuccess: dgLoadSuccess });
function dgLoadSuccess(aData){ if($(this).prop('selectAfterLoad') !== undefined &&$(this).prop('selectAfterLoad') != '' ){ $(this).datagrid('selectRecord',$(this).prop('selectAfterLoad')); $(this).prop('selectAfterLoad','') }else{ $(this).datagrid('clearSelections'); }; };
|
|
|
13
|
General Category / EasyUI for jQuery / [SOLVED] $('#A').layout({'add','collapsed:true'}); error
|
on: April 24, 2022, 03:30:20 PM
|
$('#A .main').layout();
$('#A .main').layout('add',{ region: 'east' //,noheader: true ,title: 'Instruction:' ,hideCollapsedContent: false ,border: false ,split: false ,collapsible:true ,collapsed:true ,width: '95%' ,content: '<input class="Instruction">' });
jquery.js:4094 Uncaught TypeError: Cannot read properties of undefined (reading 'jQuery321056324004689852392') at Data.get (jquery.js:4094:9) at Data.access (jquery.js:4112:16) at Function.data (jquery.js:4252:19) at Object.options (<anonymous>:3481:10) at jQuery.fn.init.$.fn.panel (<anonymous>:3453:32) at _3fb (<anonymous>:5584:22) at _3f1 (<anonymous>:5537:10) at HTMLDivElement.<anonymous> (<anonymous>:5743:1) at Function.each (jquery.js:362:19) at jQuery.fn.init.each (jquery.js:157:17)
without ,collapsed:true all work fine except that the panel is visible
|
|
|
|