EasyUI Forum
May 07, 2024, 07:44:21 AM *
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
16  General Category / EasyUI for jQuery / Re: Suppress unnecessary row of dates from last month in Calendar on: March 10, 2020, 11:54:25 PM
Try this.

Code:
<div id="c1" class="easyui-calendar" style="width:250px;height:250px;"></div> 

Code:
.calendar-other-month{	
visibility: hidden;
}

Code:
$('#c1').calendar({
onNavigate: function(year,month){   
if($("#c1").find("tr.calendar-first").find(".calendar-last").css("visibility") == 'hidden'){
$("#c1").find("tr.calendar-first").css("display","none");
}
if($("#c1").find("tr.calendar-last").find(".calendar-first").css("visibility") == 'hidden'){
$("#c1").find("tr.calendar-last").css("display","none");
}
}
});



http://code.reloado.com/jbhatti/24/edit
17  General Category / EasyUI for jQuery / Re: Suppress unnecessary row of dates from last month in Calendar on: March 09, 2020, 10:04:32 PM
use following css.

Code:
.calendar-other-month{	
visibility: hidden;
}


http://code.reloado.com/jbhatti/23/edit#html,live
18  General Category / EasyUI for jQuery / Re: Using Checkbox on: November 10, 2019, 10:22:04 PM
You can get checkbox checked property value like this.

Code:
$('#mychk').checkbox("options").checked
19  General Category / EasyUI for jQuery / Re: Getting error on message on: November 08, 2019, 09:47:06 PM

$('#dg').datagrid('getSelected') returns the data in JSON format, you should spacyfiy the field name that you want to show in message.
Code:
$.messager.confirm('Confirm','Are you sure you want to delete this certificate?' + row.yourfiedname ,function(r){
20  General Category / EasyUI for jQuery / Re: Add icon to iconCls on: November 07, 2019, 09:59:58 PM
Open icon.css file located in "easyui\themes\" folder and add css for your desired icon.

Code:

.icon-home{
   background:url('icons/home.png') no-repeat center center;
}

21  General Category / EasyUI for jQuery / Re: Dialog with layouts not resizing on: August 30, 2019, 04:54:08 AM
Please check this.

http://code.reloado.com/jbhatti/20/edit#html,live
22  General Category / EasyUI for jQuery / Re: Tabs (special case) on: August 29, 2019, 11:44:50 PM
Please refer to following example.

http://code.reloado.com/jbhatti/18/edit
23  General Category / EasyUI for jQuery / Re: Dialog with layouts not resizing on: August 29, 2019, 11:18:50 PM
Add following code at the end of your function "my_dialog()"

Code:

$myDialog.dialog({
onResize:function(w, h){
$myDialog.layout('panel', 'center').panel('resize',{height:h, width: w - 200});
$myDialog.layout('panel', 'west').panel('resize',{height:h});
}
});



Please check this example.

http://code.reloado.com/jbhatti/17/edit#html,live
24  General Category / EasyUI for jQuery / Re: Tabs (special case) on: August 29, 2019, 08:50:01 PM
Can you share your code.
25  General Category / EasyUI for jQuery / Re: Tabs (special case) on: August 29, 2019, 05:39:37 AM
Set "justified" property of the tab to true


Code:

$('#tt').tabs({                               
       justified: true
});

26  General Category / EasyUI for jQuery / Re: How know type of component on: July 16, 2019, 03:56:39 AM
You can determine it by getting class name.

Code:
var mytype =  $('#myid').attr('class')
27  General Category / EasyUI for jQuery / Re: How to place inline window into Tab Panel on: July 10, 2019, 09:57:49 PM
Please try this way.

Code:
<div title="Main Tab 1" style="position:relative; overflow:hidden; top: 0px; left: 0px; margin:auto;">
28  General Category / EasyUI for jQuery / Dynamically disable dates on datebox by setting year, month and fortnight values on: June 02, 2019, 10:08:26 PM
I have solved this way.

Code:
$('#dt').datebox({

    onShowPanel: function () {             
   
var s_day, e_day;
        var year = parseInt($('#cbYear').combobox('getText'));
        var month = parseInt($('#cbMonth').combobox('getValue')) - 1;
        var fortnight = parseInt($('#cbForthnight').combobox('getValue'));

        if (fortnight == 1) {
            s_day = 1;
            e_day = 15;
        } else {
            s_day = 16;
            e_day = new Date(year, month + 1, 0).getDate();
        }

        $(this).datebox('calendar').calendar('moveTo', new Date(year, month, 1));
       
$(this).datebox('calendar').calendar({
            validator: function (date) {
                var d1 = new Date(year, month, s_day);
                var d2 = new Date(year, month, e_day);
                return date >= d1 && date <= d2;
     }

  });

    }
});
29  General Category / EasyUI for jQuery / Dynamically disable dates on datebox by setting year, month and fortnight values on: June 02, 2019, 04:52:59 AM
I have three comboboxes on a form 'year', 'month' and fortnight, and one datebox

I want to achieve following.

1- for example, if the user selects year = 2019 month = 4 and fortnight = 1 and then select the date the datebox should only show the calendar for the month of April 2019.
2- if fortnight = 1 then only dates from 1 to 15  are enabled and if fortnight = 2  then only dates from 16 to 30 are enabled.
30  General Category / EasyUI for jQuery / Re: label on textbox on: May 22, 2019, 03:11:02 AM
add  .text() in your code after jquery selector.

Code:
<input id="name" class="easyui-textbox" labelPosition="after" data-options="label:$('#name-label').text()"/>
Pages: 1 [2] 3 4
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!