Comments (5)
Hi
Add This Code To addEventList ::
if (event_data.link) markup += '<a href=' + event_data.link.url + ' class="event-link">' + event_data.link.label + '</a>';
After Add AddeventList ::
` EvoCalendar.prototype.addEventList = function (event_data) {
var _ = this, markup;
var eventListEl = _.$elements.eventEl.find('.event-list');
if (eventListEl.find('[data-event-index]').length === 0)
eventListEl.empty();
_.$active.events.push(event_data);
markup = '<div class="event-container" role="button" data-event-index="' + (event_data.id) + '">';
markup += '<div class="event-icon"><div class="event-bul ' + event_data.type + '"';
if (event_data.color) {
markup += 'style="background-color:' + event_data.color + '"'
}
markup += '></div></div><div class="event-info"><p class="event-title">' + _.limitTitle(event_data.name);
if (event_data.badge)
markup += '<span>' + event_data.badge + '</span>';
markup += '</p>'
if (event_data.description)
markup += '<p class="event-desc">' + event_data.description + '</p>';
if (event_data.link)
markup += '<a href=' + event_data.link.url + ' class="event-link">' + event_data.link.label + '</a>';
markup += '</div>';
markup += '</div>';
eventListEl.append(markup);
_.$elements.eventEl.find('[data-event-index="' + (event_data.id) + '"]')
.off('click.evocalendar')
.on('click.evocalendar', _.selectEvent);
}`
And Your event Data schema ::
var events = [{ id: "1", name: "Event #3", description: "Lorem ipsum dolor sit amet.", date: "04/18/2021", type: "info", link:{ label:"hi", url:"dasd" } }]
from evo-calendar.
Hey Saber, thanks for the help. For good or bad I went with another solution. However it would be nice if this goes into the library itself.
from evo-calendar.
Do you mind sharing your solution?
from evo-calendar.
Подскажите пожалуйста, у кого то сработало это решение? Никак не получается сделать ссылку на материал.
from evo-calendar.
from evo-calendar.
Related Issues (20)
- Event Header Wrong
- Monthly event list instead of day
- Feature Request - Is it possible to show weeks or 2 weeks range in calendar ?
- format.toValue and format.toDisplay undefined
- How to get current month? HOT 1
- How I can get all events for the month? HOT 1
- Fetch events from db? HOT 4
- Style issue with iPad tablets HOT 1
- change gregorian calendar to solar hijri calendar
- How can I make it so that the months can be switched by the scroll wheel?
- Pleaaaase Add Solar Calendar (Jalai Hijri) Too
- selectYear functionality not working HOT 2
- event title limit HOT 1
- add language Korean
- In safari, the title part works as NaN.
- Show all the events from the selected month HOT 1
- adding a czech language/translation HOT 4
- Is it possible to have recurring events every 2-3 weeks instead of every year?
- Can't fetch events from Database
- nao consigo adicionar os eventos recebidos em Php
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evo-calendar.