@kboughaba

@kboughaba

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: set the background color of an event #102105
    kboughaba
    Member

    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.

    in reply to: set the background color of an event #102101
    kboughaba
    Member

    is 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.

    in reply to: Scheduler Resource #101954
    kboughaba
    Member

    Hello,
    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.

    in reply to: Scheduler Resource #101943
    kboughaba
    Member

    it works, thank you, but how can i get the id of my project since it is attributed to doctor’s id ?

    in reply to: customize the pop-up window event #101933
    kboughaba
    Member

    Hello,
    yes, it works.
     
    Thank you.

    in reply to: customize the pop-up window event #101930
    kboughaba
    Member

    hello,
    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>

    in reply to: customize the pop-up window event #101925
    kboughaba
    Member

    Hello,
    Thank you for your reply.
    I tried this script and it works.

Viewing 7 posts - 1 through 7 (of 7 total)