Page 1 of 1

[REACT] Using resourceassignment as a dropdown

Posted: Tue Feb 20, 2024 2:43 pm
by galb@control.site

Hi - i wonder if i can create a column type 'resourceassigment' and use it editor as a dropdown.
Something like this:

{
        type: 'resourceassignment',
        text: t('gantt_activity')!,
        flex: 1,
        editor: {
          type: 'dropdown',
        },
      },

i would like show the reasource assignment as items and let the user an option to pick one in a dropdown.
Is it possible? do i need to add 'items' field somehow?
thanks.


Re: [REACT] Using resourceassignment as a dropdown

Posted: Tue Feb 20, 2024 4:09 pm
by Animal

You can't just throw a combo in there.

Editing assigned resources is complex.

What kind if UI are you looking at that differs from:

Screenshot 2024-02-20 at 15.09.09.png
Screenshot 2024-02-20 at 15.09.09.png (60.76 KiB) Viewed 111 times

Re: [REACT] Using resourceassignment as a dropdown

Posted: Wed Feb 21, 2024 11:57 am
by galb@control.site

So what are my options?
i need a simple drop down with option to select only one resource.


Re: [REACT] Using resourceassignment as a dropdown

Posted: Wed Feb 21, 2024 12:21 pm
by mats

This demo shows how to have single assignment, will it work for you? https://bryntum.com/products/gantt/examples/single-assignment/