コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
793 ビュー

  t t-if="object.state == 'draft'"

                        Your invoice has been paid. t t-out="object.name"

                    /t

                    t t-else=""

                        Your invoice is pending payment.

                    /t

in view the output is Your invoice has been paid. Your invoice is pending payment. and didn't show the value of object.name so how to render the variable and take the if statement into consideration

アバター
破棄
著作者 最善の回答

didnt work, I need a method to render html content consideration of which model and record exist.


アバター
破棄
最善の回答

Hi,

Try to use t-field instead of t-out.


Hope it helps

アバター
破棄