Premium support for our pure JavaScript UI components


Post by denys.bogdanov »

I need to change task item view.
I found solution like using template option:

                        bodyItems={{
                            name : {
                                type     : 'template',
                                template : ({ taskRecord }) => (
                                    <BoardsTaskItem
                                        openSidebar={() => {}}
                                        task={taskRecord}
                                        columnId={taskRecord.columnId}
                                    />
                                )
                            }
                        }}

But it's throwing an error like template expect the string.

Is any way how I can use react components?


Post by mats »

But it's throwing an error like template expect the string.

Please always include the error message

Is any way how I can use react components?

No, currently we only support string / html template. I've opened a feature request: https://github.com/bryntum/support/issues/3452


Post by jan.curmi »

To follow up with this thread the error we are getting is this

Uncaught (in promise) TypeError: Cannot convert a Symbol value to a string
    at Function.syncAttributes (taskboard.umd.js?41e0:29017)
    at Function.performSync (taskboard.umd.js?41e0:28776)
    at Function.insertElement (taskboard.umd.js?41e0:29142)
    at Function.syncChildren (taskboard.umd.js?41e0:29340)
    at Function.performSync (taskboard.umd.js?41e0:28780)
    at Function.insertElement (taskboard.umd.js?41e0:29142)
    at Function.syncChildren (taskboard.umd.js?41e0:29400)
    at Function.performSync (taskboard.umd.js?41e0:28780)
    at Function.insertElement (taskboard.umd.js?41e0:29142)
    at Function.syncChildren (taskboard.umd.js?41e0:29340)
    at Function.performSync (taskboard.umd.js?41e0:28780)
    at Function.syncChildren (taskboard.umd.js?41e0:29308)
    at Function.performSync (taskboard.umd.js?41e0:28780)
    at Function.syncChildren (taskboard.umd.js?41e0:29308)
    at Function.performSync (taskboard.umd.js?41e0:28780)
    at Function.syncChildren (taskboard.umd.js?41e0:29308)

Post by sergey.maltsev »

Hi!

Thank you for this info. I've updated the issue.


Post by denys.bogdanov »

mats wrote: Wed Sep 22, 2021 12:03 pm

But it's throwing an error like template expect the string.

Please always include the error message

Is any way how I can use react components?

No, currently we only support string / html template. I've opened a feature request: https://github.com/bryntum/support/issues/3452

thank you, we will wait for this future (=


Post by jan.curmi »

Afternoon ,

Has there been any changes to this issue ?

Regards,
Jan


Post by alex.l »

Hi Jan,

Not yet. You may subscribe on ticket updates to be notified when status of the ticket changes.

All the best,
Alex


Post by jan.curmi »

Hi Alex,

Do you have an estimated time on when they will look at it by any chance please ?

Kind Regards,
Jan


Post by mats »

It's likely something we can address only in 5.1 ETA Jan/Feb, as pipeline is pretty full at the moment. If you need it urgently, we are always open for feature sponsorship: https://www.bryntum.com/services/


Post by jan.curmi »

Hi Mats,

Thank you for your reply.

Is there any other way where we can add our own custom task item (react) component rather then the ones being currently available on the task board? (so that it could match with the rest of the our theme)


Post Reply