Jump to content
uniGUI Discussion Forums
Sign in to follow this  
pro_imaj

Calendar Panelde gösterilen bilgilerde StartDate ve Title bilgileri gösteriliyor bunu değiştirebilir miyiz?

Recommended Posts

Merhaba;

 

Calendar Panelde gösterilen bilgilerde StartDate ve Title bilgileri gösteriliyor bunu değiştirebilir miyiz?

Share this post


Link to post
Share on other sites
Can I add the start time in the calendar view in addition to the end time in the calendar application?
 
The following
1 - Start Time am-pm problem (I want to have 24 hours)
2 - I want to add the End Time field

 

ZO6ZVk.png

Share this post


Link to post
Share on other sites
function eventsrendered(sender, eOpts)
{//detay tablonun, caption with hight ve saat bilgilerini ismek için
    var me=sender;
    if (me.xtype == "monthview") {
        me.el.select('.ext-cal-ev-more a').elements.forEach(function(el){
            el.innerHTML=el.innerHTML.replace(/more/gi, 'devamı');
            el.addEventListener('click', function(){
                Ext.defer(function() {
                    me.detailPanel.setTitle('Yeni başlık');
                    me.detailPanel.setWidth(600);
                    me.detailPanel.setHeight(200);
                }, 10)
            });
        });
//This code remove time string, 
        me.el.select('.ext-cal-ev div').elements.forEach(function(el){
            el.innerHTML=el.innerHTML.substring(el.innerHTML.indexOf(" ") + 1);
        });        
    };
}

Just Add time info or what you want to see in delphi code via TUniCalendarEvent.Title

example: TUniCalendarEvent.Title:= FormatDateTime('yy.mm.dd', TUniCalendarEvent.StartDate) + ' - ' FormatDateTime('yy.mm.dd', TUniCalendarEvent.EndDate) + ' -> falan filan'

 
 
 

 

 

 

 
 
 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×