You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is giving me an error that the argument is not of the type ContentItem. It isn;t possible to create instances of ContentItem manually as it's an abstract class, so instead I tried to use the layout's createAndInitContentItem method to create the content item, passing it the newItemConfig, like this:
But this method will not accept the newItemConfig - it complains that "string is not assignable to ItemType" even though I am using the ItemType enum imported from the library.
There appears to be no way out of this conundrum, and the migration guide for gl2 makes no mention of adding new items to a layout dynamically.
The text was updated successfully, but these errors were encountered:
I am trying to add a new item to an existing layout (the layout is working).
In golden-layout 1.5.9 I was able to create config for a new item like this:
Then I was able to add this to the layout like this:
In golden-layout 2.6.0 I've updated the config to this:
and I'm trying to add it like this:
This is giving me an error that the argument is not of the type ContentItem. It isn;t possible to create instances of ContentItem manually as it's an abstract class, so instead I tried to use the layout's
createAndInitContentItem
method to create the content item, passing it the newItemConfig, like this:But this method will not accept the newItemConfig - it complains that "string is not assignable to ItemType" even though I am using the ItemType enum imported from the library.
There appears to be no way out of this conundrum, and the migration guide for gl2 makes no mention of adding new items to a layout dynamically.
The text was updated successfully, but these errors were encountered: