B4J Question Show/Hide Vuetify App bar icons/buttons at runtime

magdoz

Member
Licensed User
Hi
Q 1: Show/Hide Vuetify App bar icons/buttons at runtime... ex. at the app bar not shoving at start one LiveUpdate button to show/hide somewhere conditional I want to catch his click event...
A 1: Very Thanks to you guys !

Zoltan
 

Mashiane

Expert
Licensed User
Longtime User
Please prefix your question with [BANanoVuetifyAD3] (then your question) This makes it easy to indentify such questions related to this library.

You are not providing information here sadly. The location of the appbar, is it in the pgIndex or other page? You want to hide / show the button from other pages or from pgIndex? You want to hide/show a button that resides in pgIndex from other pages?

Each component has a hidden property and this can be handled at runtime by calling .Hide/.Show or UpdateVisible


1652362308808.png


pgIndex mostly behaves a little different because it uses the VuetifyApp and not the VueComponent.

To Hide and Show any item there from any other page, use vuetify.ShowItem(componentname)
 

Attachments

  • 1652362067480.png
    1652362067480.png
    10.2 KB · Views: 135
Upvote 0

NGUYEN TUAN ANH

Active Member
Licensed User
in pgindex page, i have a (Private btnLogOff As VFAB) on AppBar
When i click on the this button, I want to Hide this button at runtime by code
Could you please help me, how to do this ?
Thank you
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
I have created a tutorial on the Mashy Teaches thread about this... you will find your answer here.

 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Item 1 of this post might help..

 
Upvote 0

NGUYEN TUAN ANH

Active Member
Licensed User
Upvote 0

magdoz

Member
Licensed User
Thank You. One more question I have,
Q: At runtime, how I can change one appbar button appearance ? outline True or False ?
 
Upvote 0
Top