Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hook to manipulate events in a cell at the data level #7715

Closed
ExtAnimal opened this issue Oct 20, 2023 · 0 comments
Closed

Allow hook to manipulate events in a cell at the data level #7715

ExtAnimal opened this issue Oct 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@ExtAnimal
Copy link

Forum post

result.pngI am trying to display an icon for some events on the top (along with date). There is no straight forward way to do this but I am able to achieve this by css styling. Still it is not working as expected.

My requirement is
expected.png

What I did is
result.png

This code I used to render event

function eventRenderer(eventRecord: any) {
  var str = ``;

  if (eventRecord.eventRecord.data.event_type == 'delivery') {
    str = `<div class="delivered-icon"><i class="fa-10x b-fa b-fa-shipping-fast"></i> ${eventRecord.eventRecord.data.count}</div>`;
  } else {
    str = `<div class="task-label">${eventRecord.eventRecord.name}</div>`;
  }

  return str;
}

And the css styling I used to show icon on top is

.b-cal-event-wrap {
  width: fit-content !important;
  height: 100px !important;
  top: 2px !important;
}

Is there any other way to place icon of html on the top of event?
result.png
expected.png
result.png

@ExtAnimal ExtAnimal added bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer labels Oct 20, 2023
@ExtAnimal ExtAnimal self-assigned this Oct 20, 2023
@ExtAnimal ExtAnimal added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Oct 21, 2023
@ExtAnimal ExtAnimal added this to the 5.6.0 milestone Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

1 participant