Our pure JavaScript Scheduler component


Post by jesperna »

Hi
I try to implement the resourceCollapse functionality like this one: https://bryntum.com/examples/scheduler/resource-collapsing/

However when i add the

type : 'resourceCollapse',

property I get the error
Error: Column type 'resourceCollapse' not registered.

extract from my code wher I have my Colomns properties:

getColumns() {
		return [
			{
				type : 'resourceCollapse',
				field: 'people',
				text: 'Ansatte',
				width: 240,
				
			renderer: ({ record }) => record.name
		}
	]
}

<BryntumScheduler
	ref={this.scheduler}
	height={this.props.height}
	// Config
	{...baseConfig}
	// Content
	columns={this.getColumns()}

How do I register that and will the collapse toggle icon appear automatically?


Post by mats »

Did you import the column?

import '../../lib/Scheduler/column/ResourceCollapseColumn.js';

Post by jesperna »

We do not have that file in our solution
the ../../lib/Scheduler/column/ folder contains only
ResourceInfoColumn.js
TimeAxisColumn.js and
VerticalTimeAxisColumn.js

However I can import it from the npm installed package:

import { Scheduler, ObjectHelper, Widget, resourceCollapse } from 'bryntum-scheduler/scheduler.umd';

But that is in the core scheduler file and not where I need it.


Post by mats »

Sounds like you are using an old version then, this was added:

# 4.1.5 - 2021-06-09


Post by jesperna »

Yes our pro version provided by you april 2021 is Version 3.1.8
So I guess we can't use that feature


Post by mats »

Correct, until you upgrade. Do you have upgrade plans?


Post by jesperna »

Not at the moment. i will check with the project leader


Post Reply