full calendar(angular-ui event change background when event limit=true

322
February 21, 2017, at 11:28 PM

I don't know how to do the event background-color change when i have limit event (example: i want to draw the event with background color, i don't want text "+2 more") ;

class fc-more is the div with the events.

Configuration:

$scope.uiConfig = {
        calendar: {
            firstDay:1,
            height: 'auto',
            editable: true,
                eventLimit: true,
                 eventLimitText: "",

                            views: {
                                month: {
                                   eventLimit: 1
                                }},
            titleFormat: {
                     month: 'MMMM'
            },
            header: {
                left: 'prev',
                center: 'title',
                right: 'next'
            },
             eventRender:  function (event, element) {
                        element = angular.element('fc-more');
                element.css('background-color', 'yellow');
                debugger;
        if(event.color =="#3985AA")
        {
            element.css('background-color', '#3985AA');
        }
        if(event.color =="#43AF89")
        {
            element.css('background-color', '#43AF89');
        }
        if(event.color =="#FFC900")
        {
            element.css('background-color', '#FFC900');
        }
    },

HTTP Ajax

    $scope.eventSources = [
    ];
    ajax.sendApiRequest({}, "GET", "eventosusuario", false).then(function (response) {
        angular.forEach(response.data, function (evento) {
            evento.start = new Date(evento.fecha);
            evento.allDay = true;
            evento.end = new Date(evento.fecha);
            evento.title = evento.titulo;
            evento.color= "#3985AA";
            evento.textColor="#FFFFFF";
            evento.url="#/app/evento/"+evento.nid;
        })
        $scope.eventSources.push(response.data);
    }, function (error) {
        _showPopUp('error', 'error');
    });  
READ ALSO
PHP variable to JS variable using AJAX

PHP variable to JS variable using AJAX

I'm trying to convert a PHP variable to a JS variable so I can use it in a game I'm makingWhen I check the map code it is just undefined

308
How to put html tag inside a three.js plane? [on hold]

How to put html tag inside a three.js plane? [on hold]

I am trying to put html tags inside threejs Shapes for e

319
Average Analytic representation on combo chart using PHP

Average Analytic representation on combo chart using PHP

OkSo my plan is to find the average according to the position acquired by the employee and represent on chart accordingly Division is as follows Position :-> Intern,Employee,Team leader On the basis of position attribute values will be averaged and then represented...

296
Use TinyMCE WIRIS plugin in nodeJS application

Use TinyMCE WIRIS plugin in nodeJS application

I am currently working on a questions uploading stuffHere I want use TinyMCE as WYSIWYG Editor with WIRIS maths input plugin

573