@kboughaba
@kboughaba
Forum Replies Created
-
AuthorPosts
-
kboughabaMember
Hello,
thank you for your reply, it works yes, but i wanted to set the color of the event’s color in the onItemInsert function, each event has his own color that i will set it while onItemInsert($event).
your code set only one color for all the event, i want for exemple, event_1 has color green, event_2 has color blue, etc,..
I’m waiting for your feedback,
thank you.kboughabaMemberis there any way to change the default value of –smart-scheduler-event-background-rgb ? to set it into Angular ?
i want for each time i create an event ( each time i click Ok while creating an event ), i set a color for the event background.
Thank you.kboughabaMemberHello,
I didn’t get any answer for my second question please !
also i have another problem with [views] in html code, i’ve already tested this link and it’s not working “https://www.htmlelements.com/forums/topic/errors-while-installation/” .
i’m having the error ” ” Type ‘object | string[]’ is not assignable to type ‘SchedulerViews’. Type ‘object’ is not assignable to type ‘SchedulerViews’. Type ‘object’ is not assignable to type ‘”timelineMonth”‘. ” for both [view]=”view” and [views]=”views” ”
thank you.kboughabaMemberit works, thank you, but how can i get the id of my project since it is attributed to doctor’s id ?
kboughabaMemberHello,
yes, it works.
Thank you.kboughabaMemberhello,
In fact, i followed your example, but the problem is that in “event.detail.editors” i found label, backgroundColor, notifications, .. and not the field that i’ve added.
the script that i used :
<div>
<div> ——————————————————————————————————
<div>
<div>let astreinteElement = editorsContainer.querySelector(‘#smart-input’);</div>
<div> if (!astreinteElement) {</div>
<div> const elementContainer = document.createElement(‘smart-check-box’),</div>
<div> label = document.createElement(‘astreinte’);</div>
<div> label.textContent = ‘Astreinte: ‘;</div>
<div> elementContainer.classList.add(‘smart-scheduler-window-editor’);</div>
<div> elementContainer.appendChild(label);</div>
<div> astreinteElement = document.createElement(‘smart-check-box’);</div>
<div> astreinteElement.id = ‘smart-input’;</div>
<div> elementContainer.append(astreinteElement);</div>
<div> editorsContainer.appendChild(elementContainer);</div>
<div> }</div>
</div>
<div> ——————————————————————————————————
<div></div>
<div>thank you for your help.</div>
</div>
</div>
</div>kboughabaMemberHello,
Thank you for your reply.
I tried this script and it works. -
AuthorPosts