I have textfield:
{
xtype: 'textfield',
fieldLabel: 'LBL_EMAIL',
anchor: '100%',
listeners: {
'render': function(p) {
// check certain conditions
this.hide()
}
},
},
"hide()" only hides textbox (without label) and I want hide whole row (textbox and label). Any ideas?
The best way to hide the label in form input field, is to pass empty value to array on 'attributeLabels()' function in the model. public function attributeLabels() { return [ 'id' => 'ID', 'gender' => 'Gender', 'client_name' => '', . . . ] } That doesn't remove the label. Just hides doesn't display a text.
The hidden attribute hides the <label> element. You can specify either 'hidden' (without value) or 'hidden="hidden"'. Both are valid. A hidden <label> element is not visible, but it maintains its position on the page.
Select any shipping label in the Print On menu. Check the Hide Postage Value option on the right, below the preview image of your label.
Hiding the label with display: none; is bad for web accesibility and you shouldn't do it. Try visibility: hidden; instead. yep, why I added a label I didn't want to see in the first place. display: block; height: 0; visibility: hidden; .
I found a solution, I have to configure the FormLayout with:
trackLabels: true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With