These are chat archives for angular-ui/ui-calendar

9th
Nov 2016
Arthur Vaverko
@arthurvaverko
Nov 09 2016 08:15
Anyone can point me on how would i add a capability to display icons in the monthly view ?
i wish to reserve the first row (where the date is) to display up to 3 icons.
The icons preferably would be an event source with a date range and for every day an icon would be displayed ...
eddiriarte
@eddiriarte
Nov 09 2016 10:13
@fossjoon ... would help you if i can, but what is exactly your problem.... you can find all details of usage in the readme-file and the demos in project
eddiriarte
@eddiriarte
Nov 09 2016 10:27
@sharadit47 you can set following config in your calendar: timeFormat: 'H(:mm)a'
eddiriarte
@eddiriarte
Nov 09 2016 10:37
@arthurvaverko to set additional icons in the month-view(inside the table) i would use just css... if you need custom handlings just define callbacks for dayClick, eventClick, select/unselect to get date, date-ranges and existing appointments
Arthur Vaverko
@arthurvaverko
Nov 09 2016 15:12
@eddiriarte i am using css right now as you suggested .. Thus aint enught becuse setting to absolute will cause all icons ro overlaap (i have 3 of these) and setting a margin for each will cause them to display in the same location even if only one exsist :(
eddiriarte
@eddiriarte
Nov 09 2016 18:05
@arthurvaverko with some js magic its possible to infere the rendering process and add more icons http://jsfiddle.net/yw6bkrq4/1/
Arthur Vaverko
@arthurvaverko
Nov 09 2016 19:42
@eddiriarte Thank you ! I was not aware that there was a hook for dayRender .. this solves all the trouble i had... thank you !