Comment/Disable the Widget on the Screens
351
Views
13
Comments
New
Frontend (App Interfaces)

Just an idea clicked in my mind before this weekend starts that can we have feature available on the design screen where we can make widgets commented or disable same as we do usually in HTML or ASPX, if we do not want to display them on the screen in present and want to use the same in future functionality. If we refer OutSystems, like the feature added to enable the actions or aggregates in different server/client actions.

There are workarounds currently like putting them inside a container not visible or put them inside an If on the False branch.

Do you know any other scenario where this workarounds wouldn't work?

Ok.. Thanks for your valuable inputs. But what if I have a big form and have number of widgets to disable/comment, so how it would be feasible to go and put if condition for each widget or to put them in container and make it's visibility false. What I want is just to make them disable/enable with very minimal efforts.

You're right, in those situations it's quicker to have a property in the widget.

Actually, in terms of UI, there's a lot to be improved like the preview of the screen.

2016-04-21 20-09-55
J.
 
MVP

The danger in this is that you are going to create a big page with a gazillion widgets, which is not a goto practice to begin with.


This would not be the case at all time that we are going to create a big page. However, sometimes we need to disable some widgets and in some later release we would need to enable them back for some functionality.

Merged this idea with 'Disable Links like we have option to disable Elements' (created on 05 Apr 2023 07:47:51 by Shubham Tiwari)

There are cases when we do not want to show the content of the links and simply want to hide that part so that we can reuse them whenever required again.

We have the option to disable the elements but this option is not available for links.

Basically I want to have  Code Commenting on UI widgets on Screen Side.

Something similar to the below link

https://www.w3schools.com/html/html_comments.asp

Hi Shubham,

I got the idea, this would be really helpful not only the UI developer. But extend the code manageability. Basically there should be some option to comment out the container, code and widget etc. The link you have attached is giving clear idea what is the requirement.

It will help developers to understand the code more clearly. Helpful for making the UI elements hidden on screen level. 

I believe the easiest way is to just put the element in a container and set Visible to false, or put it in an IF and set that to False. This way the code is not just commented out client-side, but it does not even render which is plus.

I agree with the solution that @Nicholas Campbell provides, that is the way to do it.

Merged this idea with 'Disable UI Widgets' (created on 21 Jun 2023 06:26:06 by Sanjay Bankar)

Hello all


It would be better if we can disable specific UI widgets for some time. Recently i came across a situation where i was trying to fetch data from APIs and displaying it on screen  using different Table Widgets.

For doing trial and error method we should be able to disable Table widgets otherwise everytime all API's w.r.t . all tables gets called and it affects on performance of the application.



Regards

Sanjay Bankar