Just wondering, is there any way I can disable link component?

Hi,

I am wondering if I can disable link component using code, link components are very beneficial whenever there is a need to make other components clickable.

Thanks

Try to set the link’s enabled property to False. I believe that should work.

Unfortunately, there is no such a property (see image)

I am wondering if anvil team can add it?

Thanks

My apologies. I must’ve imagined that property.

You can use CSS and a custom Anvil role (not sure if this works on IE though).

Here is a clone to demonstrate:
https://anvil.works/build#clone:FAHJTZ4ZBY7ROXP2=JBUIQGY4MLIZX6RNPAAQATDB

2 Likes

That is awesome!
Can you please show me how you added this roll? so I can copy it my other apps.

Thank you

There is a description of using roles here:

1 Like

Perfect. thank you so much!

1 Like