Jump to content


Photo

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


  • Please log in to reply
4 replies to this topic

#1 pro_imaj

pro_imaj

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 539 posts

Posted 27 November 2017 - 09:22 PM

Merhaba;

 

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


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3885 posts

Posted 28 November 2017 - 06:48 AM

Hi,

 

Sorry, Can you translate into English?


  • 0

#3 pro_imaj

pro_imaj

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 539 posts

Posted 28 November 2017 - 07:20 AM

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


  • 0

#4 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 249 posts

Posted 28 November 2017 - 10:30 AM

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'

 
 
 

 

 

 
 
 


  • 0

#5 pro_imaj

pro_imaj

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 539 posts

Posted 28 November 2017 - 09:08 PM

The moon is improving but the problem persists on the day and week. (12:00 am?)

 

Gy7gj7.png

yzWvka.png


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users