[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Next Framework • Ver Tópico - Como inverter label e campo
Página 1 de 1

Como inverter label e campo

MensagemEnviado: Sáb Ago 27, 2011 10:23 pm
por jtakata
Rógel e demais membros,
Como eu faço para que o campo apareça antes do seu label?
Na verdade, eu queria que num checkbox, aparecesse primeiro o checkbox e depois o seu label.
Eu procurei na documentação mas só encontrei o renderAs do <t:property para single, double e column. Não encontrei nada sobre inversão de campo/label.
Grato,
Jorge

Re: Como inverter label e campo

MensagemEnviado: Seg Ago 29, 2011 8:46 pm
por rogelgarcia
Não é possível de forma "automática"..

O que você terá que fazer é:

<t:property name="meuCampoCheckbox"/> Label


Tavlez sejam necessárias algumas adaptaçoes como por exemplo:

<t:property name="meuCampoCheckbox"/> <n:panel>Label</n:panel>

ou

<t:property name="meuCampoCheckbox" renderAs="single" showLabel="true"/> <n:panel>Label</n:panel>

Re: Como inverter label e campo

MensagemEnviado: Seg Ago 29, 2011 10:21 pm
por jtakata

Re: Como inverter label e campo

MensagemEnviado: Seg Ago 29, 2011 10:32 pm
por rogelgarcia
Me confundi aqui.. deve utilizar showLabel="false"

Re: Como inverter label e campo

MensagemEnviado: Seg Ago 29, 2011 10:37 pm
por jtakata
É o que eu havia pensado, tanto é que tentei usar showLabel="false" mas não funcionou.
O único jeito foi colocar label=" ".

Re: Como inverter label e campo

MensagemEnviado: Ter Ago 30, 2011 6:44 pm
por rogelgarcia
O showLabel="false" só é utilizado se renderAs="single"

Re: Como inverter label e campo

MensagemEnviado: Ter Ago 30, 2011 6:47 pm
por jtakata
Ah tá, então é por isso que não funcionou.
O renderAs está double.