0
I have 3 radio Buttons, when I click on each one should appear a different fomulário. I looked for some examples, but what I found are only two options.
Follow the code I have at the moment
<div class="ui-g-12 ui-md-12 ui-lg-12 ui-fluid espacamento-baixo">
<div class="ui-g-3"><p-radioButton value="imagem" label="Imagem" inputId="imagem"></p-radioButton></div>
<div class="ui-g-3"><p-radioButton value="video" label="Video" inputId="video"></p-radioButton></div>
<div class="ui-g-3"><p-radioButton value="link" label="Link" inputId="link"></p-radioButton></div>
<div class="ui-g-3"><p-radioButton value="wistia"label="Wistia" inputId="wistia"></p-radioButton></div>
</div>
He was testing with Ivs
<div class="toggle-panel" *ngIf="show" [hidden]="hidden" [style.visibility] = "visibility">
Teste
</div>
Those are the functions I was trying to
show = true;
hidden = false;
visibility = 'visible';
toggleShow(){
this.show = !this.show;
}
toggleHidden(){
this.hidden = !this.hidden;
}
toggleVisible(){
this.visibility = this.visibility == 'visible' ? 'hidden' : 'visible';
}
Thank you very much, that’s exactly what I was trying to do
– Guilherme Lucas