Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
808 มุมมอง

  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

อวตาร
ละทิ้ง