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

I'm using this code:

decoration-succes="status == 'accepted'" 

decoration-danger="status == 'refused'">


but when the status is changed the colours dont change. 

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

Hi,

Please verify that you are provided the decoration in the correct format in XML file

example:

<field name="state" widget='badge' decoration-success="state == 'running'" decoration-warning="state == 'draft'" decoration-info="state == 'stopped'"/>


And also please upgrade your module and try again


Hope it helps

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

This is the entire line:

 

The command in de decoration succes and decoration danger works in another line to make certain data invisible.


edit: when i post my answer the line gets deleted from the answer...

but the code is in a tree.

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

I hope you are defining the decoration in the correct manner
Example :



if you've defined it correctly and then too if it doesn't work, share your code here


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