EasyUI Forum
October 15, 2025, 07:20:37 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2 3 ... 7
1  General Category / EasyUI for jQuery / new component: tristatebox on: September 04, 2025, 11:06:28 AM
TriStateBox is a jQuery EasyUI component that renders a three-state selector (1/0/null) inside a standard textbox shell.

It preserves EasyUI labeling, sizing, and form behavior while replacing text input with three equal-width buttons.

Values map to Y, N, and ? with customizable labels via symY, symN, and symU.

Public API: getValue(), setValue(v), clear(), reset(), enable(), disable(), resize(w), destroy().

It normalizes JSON inputs (1, 0, null, '1', '0') and fires onChange(oldVal, newVal) on state changes.

Code:
$('#test').tristatebox({
  label: 'Label:'
, labelPosition: 'before'
, labelAlign: 'left'
, value: null
, onChange: function (o, n) { console.log('TriState change:', o, '→', n); }
});



Code:
$(`#test2`).tristatebox({
  value: 0
, symY: 'label Yes'
, symN: 'label No'
, symU: 'off'
});


2  General Category / General Discussion / Re: Downloadable documentation (ex. as .chm or .pdf) ? on: August 03, 2025, 01:37:29 PM
Thnx, newest documentation https://www.jeasyui.com/download/downloads/jquery-easyui-doc-1.11.3.zip ?
3  General Category / EasyUI for jQuery / datagrid dynamic hformatter on: July 05, 2025, 05:26:20 AM
need to change column header after .datagrid('reload')


Code:
hformatting: (title,col)=>{ return !globalKey? title : `<span>... ... ... ${title}</span>`}

what can I use for refresh header cell title ?
Code:
onLoadSuccess: ()=>{
  .datagrid('renderHeader') ??
}
4  General Category / EasyUI for jQuery / Temporary solution on: March 10, 2025, 05:02:53 PM
If there truly are no other solutions, this one may be included in the extension if desired.

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" />
<link rel="stylesheet" href="/static/eui-ggl.css" />

Code:
...
, iconCls: 'ggl-o ggl-example ggl-2x '
...
5  General Category / EasyUI for jQuery / iconCls and GoogleFonts Icon material-symbols-* on: March 10, 2025, 12:44:45 PM
Hi!

How can I use the Google Fonts Material Symbols icon (<span class="material-symbols-outlined">verified</span>) in the iconCls property?

Thnx
6  General Category / EasyUI for jQuery / Re: layout panel expand to maxWidth on: April 29, 2024, 01:28:16 AM
now use
Code:
$('#dlg .layout').layout('panel','east').panel('resize',{width:250});
$('#dlg .layout').layout('expand','east');

its work, but panel floating from 0 position
7  General Category / EasyUI for jQuery / layout panel expand to maxWidth on: April 29, 2024, 01:24:41 AM
Code:
  $('#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 ?
8  General Category / EasyUI for jQuery / Re: [datagrid_export] prevent EXCEL to convert float to date on: April 19, 2024, 10:38:00 AM
for simple export there is no need for ext lib
9  General Category / EasyUI for jQuery / [datagrid_export] prevent EXCEL to convert float to date on: April 16, 2024, 07:06:30 AM
datagrid-export-1.0.3.zip/datagrid-export.js:
LINE 49-51:
Quote
               data.push(
                    '<td style="'+tdStyle+'">&nbsp;'+value+'</td>'
                );
10  General Category / EasyUI for jQuery / [SOLVED] .combotree textField - didnt work on: March 24, 2023, 07:13:11 PM
Code:
textField	string	The underlying data field name to bind to this ComboTree. Available since version 1.5.2.

Code:
  $('#Label').combotree({
      url: '?getLabels'
    , idField: 'ID'
    , textField: 'Name'
    //, valueField: 'Name'
    //, treeField: 'Name'
  ...
 });


json and result in screenshots
11  General Category / EasyUI for jQuery / $.messager.prompt with miltiline input on: March 01, 2023, 11:18:23 PM
Code:
  $.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" Sad

jQ hooks didn't work
Code:
$.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 ?
12  General Category / EasyUI for jQuery / ERROR in DEMO: Tabs with DropDown on: January 19, 2023, 04:13:55 AM
https://www.jeasyui.com/demo/main/index.php?plugin=Tabs


Code:
var mb = p.panel('options').tab.find('a.tabs-inner');
may be

Code:
var mb = p.panel('options').tab.find('span.tabs-inner');
13  General Category / General Discussion / Downloadable documentation (ex. as .chm or .pdf) ? on: December 28, 2022, 07:40:30 AM
Where can get Downloadable documentation (ex. as .chm or .pdf) ?
14  General Category / EasyUI for jQuery / Re: unselect linkbutton on: December 18, 2022, 01:30:09 PM
code.reloado.com - ERR_NAME_NOT_RESOLVED

How to UNCHECK/UNSELECT ALL buttons in group ?
15  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 ?


Code:
$('#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');
  };
};
Pages: [1] 2 3 ... 7
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!