Hello Smart Viewers, 🖐️
Together with @jakubkares we figured out how to globally disable the Drag and Drop in the NodesTable widget. (The reason being one of the customer's requests).
Turns out all you have to do is have a Smart UI SDK module deployed, and setting a flag inside of your -extensions.json, like so:
"csui/widgets/nodestable/nodestable.view": {
"enableDragNDrop": false
}
How does it work:
- When nodestable gets loaded, it checks all the configuration pointing at it. It does this using special requirejs module, called "module".
- https://requirejs.org/docs/api.html#config-moduleconfig
- Opentext did some magic with this, so Smart UI automatically merges all the -extensions.json files into one big config, and all you need to do is call module.config() from the file to get the relevant config.
- 💡 Nodestable.view leverages this and (together with other stuff) loads the "enableDragNDrop" flag.
I checked the older SDKs and it seems this options has been added in CS version 21.1 (Thanks OpenText! 😊)
So if you want to make use of this, make sure you have at least CS 21.1.
Jan