EasyUI Forum
May 10, 2024, 11:13:41 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 [4] 5 6 7
46  General Category / EasyUI for jQuery / Re: datebox getValue as Date object on: December 31, 2019, 11:32:09 AM
Thnx for Your reply, but:

I use my parser for decode mySQL datetime format

Code:
  function parseMySQLdate(aDate){
var matches = aDate.match(/^\s*(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})\s*$/)
, lDate = new Date()
;

if(matches){
var Y = parseInt(matches[1],10)
,   M = parseInt(matches[2],10) - 1
,   D = parseInt(matches[3],10)
,   H = parseInt(matches[4],10)
,   N = parseInt(matches[5],10)
,   S = parseInt(matches[6],10)
;
            lDate.setDate(D);    
            lDate.setMonth(M);    
            lDate.setFullYear(Y);    
   lDate.setHours(H);
   lDate.setMinutes(N);
   lDate.setSeconds(S);

}

return lDate;
}

so it`s not suitable for...
and  db.datebox('getValue'); return string without year (because my formatter is dateFormat(aDate,"dd mmm HH:MM") )

is there a possibility to store date as Date object in date[time]box inside formatter or inside ('setValue')
and get it as Date object from ('getValue') ?

OR maybe add
 .datetimebox('getDate')
 .datetimebox('setDate',DateObject) ?
47  General Category / EasyUI for jQuery / [SOLVED: added new functionality] datebox getValue as Date object on: December 26, 2019, 10:37:19 AM
How  get current value from datebox as Date object ?

my formatter is dateFormat(aDate,"dd mmm HH:MM")
and .datebox('getValue') return string in this format ;(
48  General Category / EasyUI for jQuery / Re: form with external input on: October 27, 2019, 07:09:08 AM
thnx, but

Code:
<form id="frm1" ....>
<div ... class="easyui-layout">
 <div  data-options="region: ... >
   <input id="iNum" form="frm1" class="easyui-numberbox" data-options="required:true">
 </div>
 <div  data-options="region: ... >
   <input id="iText" form="frm1" class="easyui-textbox" data-options="required:true">
 </div>
</div>
</form>

didn't draw normally: inner <div ... class="panel-body" ...> have calculated style width: 0px Sad
when "easyui-layout" outside <form> all draws good
49  General Category / EasyUI for jQuery / form with external input on: October 26, 2019, 01:49:34 PM
HTML:
Code:
<div ...>
 <input id="iNum" form="frm1" class="easyui-numberbox" data-options="required:true">
 <input id="iText" form="frm1" class="easyui-textbox" data-options="required:true">
</div>
<form id="frm1" ....></form>

JS:
Code:
 function doCheck(){
  if( $('#frm1').form('validate') ){
   ....
  }
 }

why form.validate always (and  with empty inputs values, texts ) true ?
50  General Category / EasyUI for jQuery / tooltip content with <a> elm on: October 03, 2019, 06:23:26 AM
Code:
function fmtEditore(val,row){
 return '<span class="easyui-tooltip" '
+'title="'+row.editor+'<br><span class=\'small\'>'
+'<a href=\'https://stat.ripe.net/widget/maxmind-geo-lite#w.resource='+row.editVIA.split('|')[0]+'\' target=\'ripe\'>[GeoIP]</a>'
+'<a href=\'https://stat.ripe.net/widget/whois#w.resource='+row.editVIA.split('|')[0]+'\' target=\'ripe\'>[WhoIS]</a>'
+'<a href=\'https://www.infobyip.com/?ip='+row.editVIA.split('|')[0]+'\' target=\'ripe\'>[InfoByIP]</a>'
+row.editVIA.split('|').join('<br>')+'</span>"'
+' data-options="hideEvent:\'none\''
      +',onShow: function(){'
      +'var t = $(this);'                                    // blur
+'t.tooltip(\'tip\').focus().unbind().bind(\'mouseleave blur\',function(){t.tooltip(\'hide\')});'
      +'}'
    +'"'
+'>'+val+'</span>'
}

without 'blur' all work fine but tooltip didnt hide when select another row in datagrid.

with 'blur' tooltip work fine but user can`t do click on href : tooltip close before send call event to <a>

how to : <a> do click and tooltip hide when tooltip blur ?
51  General Category / EasyUI for jQuery / why datagrid.onLoadSuccess call after datagrid painted? on: October 03, 2019, 12:12:45 AM
How to prepare data (create virtual columns and fill it) before datagrid painted?

52  General Category / EasyUI for jQuery / Re: ext color in ext edatagrid on: September 27, 2019, 05:03:53 PM
Thnx!
53  General Category / EasyUI for jQuery / wrong width calculation on mobile on: September 27, 2019, 04:58:44 PM
PC:
Mob:

another page on mobile


on PC and Mobile latest GoogleChrome

in pages head:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
54  General Category / EasyUI for jQuery / [SOLVED] ext color in ext edatagrid on: September 25, 2019, 07:27:15 AM
Can I use color extension ion edatagrid editor?


Code:
<table id="dgType" title="types" class="easyui-edatagrid"
width="300px" fit="true" pagination="false"
        toolbar="#dgTypeToolbar"
idField="ID" sortName="Weight,Name" sortOrder="asc,asc"
        rownumbers="true" fitColumns="true" singleSelect="true"
data-options="url: '?Type=l'
,saveUrl: '?Type=I'
,updateUrl: '?Type=U'
,destroyUrl: '?Type=d'
"
>
  <thead>
<tr>
<th field="ID" hidden="true"></th>
...
<th field="Active" width="05%" editor="{type:'checkbox',options:{required:true,value:'1',on:'1',off:'0'}}">Active</th>
<th field="colorBG" width="10%" editor="{type:'color',options:{required:true}}">background</th>
<th field="colorT" width="10%" editor="{type:'color',options:{required:true}}">text</th>
</tr>
 </thead>
</table>

column colorT and colorBG didnt editable Sad

Code:
<input class="easyui-color">
- work fine
55  General Category / EasyUI for jQuery / Re: initial queryParams for datagrid via <table> markup ? on: September 11, 2019, 03:43:44 PM
yep, bug in another place. Thnx!
56  General Category / EasyUI for jQuery / [FIXED] initial queryParams for datagrid via <table> markup ? on: September 10, 2019, 04:09:23 PM
Code:
<table id="dgA" title="" height="100%" class="easyui-datagrid" url="/API/?DirA"
idField="ID"
showFooter="true" pagination="true" pageSize="1000" pageList="[1000]" rownumbers="true" fitColumns="true" singleSelect="true"
queryParams="{ ParentID: '0' }"
>
DIDNT WORK

Code:
<table id="dgA" title="" height="100%" class="easyui-datagrid" url="/API/?DirA"
idField="ID"
showFooter="true" pagination="true" pageSize="1000" pageList="[1000]" rownumbers="true" fitColumns="true" singleSelect="true"
data-options="queryParams: { ParentID: '0'}"
>
PARSE ERROR
57  General Category / EasyUI for jQuery / numberbox('suffix': HTMLsymbol) ? on: September 04, 2019, 05:51:11 PM
In database Currency sign saved as HTMLsymbols ( &#8364; &#8378; )
when I do
Code:
.numberspinner({'suffix': ' '+lCurrency.Sign}).numberspinner('setValue',100);
text in the input : 100  &#8364;
how can set suffix to show HTML code as  symbol?


second: how to align text in input to right side? <input align="right"> and <input data-options:"align: 'right'"> didnt work
58  General Category / EasyUI for jQuery / Re: easyui-datebox key shortcut for open calenar? on: September 04, 2019, 05:43:16 PM
Thnx!
59  General Category / EasyUI for jQuery / [SOLVED] easyui-datebox key shortcut for open calenar? on: August 25, 2019, 08:32:23 PM
Do easui-datebox (datetimebox) have Shortcut for open Calendar?

If not : How assign key shortcut to open calendar in datebox ot datetimebox ?
It can be evented only if focus in this input
60  General Category / EasyUI for jQuery / Re: easyui-panel lyout on: August 22, 2019, 07:52:50 PM
Thanx!
Pages: 1 2 3 [4] 5 6 7
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!