Hello folks,
I'm developing a custom action that will change the height of the lane. For this I'm using the resourceMargin property mentioned here https://www.bryntum.com/products/scheduler/docs/api/Scheduler/model/mixin/ResourceModelMixin#field-resourceMargin. I'm providing a ResourceMarginConfig object to this property but has no effect.
If instead, I provide a number, the property will work as expected.
Here's a snippet of how my project looks like (in my config):
// other configurations
columns: [
{
type: 'action',
text: 'Actions',
actions: [{
cls: 'b-fa b-fa-plus',
tooltip: 'My tooltip',
onClick: (args: any) => {
const { record, target } = args;
//This is not working
record.resourceMargin = {start: 0, end:100};
// This works
record.resourceMargin = 100;
}}]
}
]
Once I inspect the type definitions of ResourceModelMixin, seems like the property only receives a number:
There's no mention of this in the release notes https://bryntum.com/products/schedulerpro/changelog/. Could you please confirm on what version this is available? Thank you