Our powerful JS Calendar component


Post by luiscloud »

Hi,

Im using
"@bryntum/calendar": "5.0.1",
"@bryntum/calendar-vue-3": "5.0.1",

And when i press "Print" button on "agenda" calendar view with this calendar config:

    features: {
      print: true,
    },
    tbar: {
        items: {
            print : {
                type: 'button',
                text: i18n.global.t('calendar.print'),
                icon: 'b-fa b-fa-print',
                cls: 'b-print-button',
                tooltip: i18n.global.t('calendar.printTooltip'),
                onClick: 'up.print'
            }
        }
    },

Exported pdf doesn't show any event, only show this data:

17/3/22, 13:37 2022. 6 events
localhost:8080/#/calendar

If i press print in other calendar views different from "agenda" like "week" or "month", all works fine.


Post by Animal »

Yes, we have a ticket for this. It's quite a difficult one: https://github.com/bryntum/support/issues/3884


Post by luiscloud »

Provisional fix:

Calendar config events:

        beforePrint() {
          window?.print?.()
          return false
        },

Style

<style>
@media print {
  .sidebar-cls {
    display: none;
  }
  .b-button {
    display: none;
  }
}
</style>

Post Reply