hi there!
How to Check if A Web Block/a widget is Enabled/Disable?
regards and thank you
Hi IBOX
Can you specify what type of web block / widget you're referring to? And what do you mean by enabled/disabled?
Ossama
Hi IBOX ,
Keep your webblock inside a div and bind the display property of the div with a boolean variable . Now you can check the visibility of your webblock by that variable.
Also with webblock there is no property like enable\disable , you can have this property for most of the controls like Input box , Dropdown, Checkbox etc which you can control by binding the Enabled property with variables.
Please let me know if you need additional information or your case is different from what i expalined.
Regards,
-PJ-
Pramod Already provided answer but just want to add one thing:
If you want to enable/disable a widget which doesnot have default enabled/disable property you can put in container and add a clsss with if condition based on Boolean parameter.
@Abdul quadir Saifee , Solution already provided by @Pramod Jain. he is already mention this condition.
Rahul Sahu wrote:
Yes. It was for display and I just added enabled/disabled condition.