[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Marlysson Silva
You are welcome , good know that you did. Em segunda-feira, 3 de outubro de 2016 15:53:54 UTC-3, Peter escreveu: > > > So I played with it for a while and tried assigning red, green and blue > backgrounds randomly, just to get it working. > > My fullcalendar.css (FullCalendar v1.4.1 Stylesheet)

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Peter
On Monday, 3 October 2016 16:08:32 UTC+1, Marlysson Silva wrote: > > 1. Have how you provide this project in github? Stay easier handle with > code , or it's private project? > I have a github account but I haven't figured out how to use it properly yet. > 2. A good practice it's generate d

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Peter
Just to be clear This code (with 'type' being assigned) > { type: '{{=row.task.task_type}}', > title: '{{=row.task.task_status}} {{=row.task.task_type}} > {{=row.person.fullname.replace("'","\\'")}} ', > allDay: false, > start: new Date('{{=row.task.start_time.strftime('%B %d, %Y %H:%M:%S

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Marlysson Silva
1. Have how you provide this project in github? Stay easier handle with code , or it's private project? 2. A good practice it's generate data in web2py controller and at view just use the data. Ex: the "for" in the js code. But have how improve . after. Em segunda-feira, 3 de outubro de 2016 11

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Peter
This is what my code looks like now but is still not working (page displays but there is no calendar) Can you explain using line reference numbers where it is wrong or where something is missing? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-03 Thread Marlysson Silva
Hello Peter , you are getting started with javascript now? Without problems. EventRenderCallback it's a callback function , that used in object properties "FULLCALENDAR" , that means in the element that to used the first parameter will be the general event and second will be the current element

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Peter
Thanks again Marlysson! Okay, I've tried a few configurations (a lot actually) and came up with this which doesn't work (but it doesn't crash either - it breaks the view by showing no calendar entries) It's probably too influenced by my python formatting and flow*! Regardless, I can't f

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
First , in css , the classes are defined with "." before name them , then it's so : .trainning , .project_work With this answer : http://stackoverflow.com/questions/31322105/full-calendar-rails-adding-custom-css-classes-to-events/33894043#33894043

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
First , in css , the classes are defined with "." before name them , then it's so : .trainning , .project_work With this answer : http://stackoverflow.com/questions/31322105/full-calendar-rails-adding-custom-css-classes-to-events/33894043#33894043 It's possible to use a custom function in

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Peter
Thanks Marlysson, Assuming row.task_typecan be one of [ 'TRAINING' , 'MEETING' , 'PROJECT_WORK''] I want to the event background to be RED GREEN or BLUE respectively. Do I add code something like this to the CSS file .myclass, .fc-agenda .myclass .fc-event-time, .myclass TRAI

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
You need that each type event change with a type backgroud specific? You should to create styles to each type and to use by javascript or jquery handle events and change background of element wished .. What do you need do? Em domingo, 2 de outubro de 2016 12:28:12 UTC-3, Peter escreveu: > > > >