Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2151 Lượt xem

Guys,

Is it possible to use in t-if="'field ilike value" ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Use the string javascripts functions like http://www.w3schools.com/jsref/jsref_obj_string.asp

Ảnh đại diện
Huỷ bỏ
Tác giả

Could you be a little bit more precise please ? I've tried t-if field_name len(field_name) > 6 and it apparently works, so i tried also t-if="o.field_name startsWith('ebay')" and got error.

Tác giả Câu trả lời hay nhất

So I did :)

I did it that way: t-if field_name len(field_name) > 6 and it seems to work. Of course it's not the perfect solution but .....


Ảnh đại diện
Huỷ bỏ