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

I am using odoo14, and I am trying to make a custom component.

It's a div includes a span and another div, span is the information of color and the div is the container that set background of the color above.

I tried the official way on https://www.odoo.com/documentation/14.0/developer/reference/javascript/javascript_cheatsheet.html

Creating a new view (from scratch)

But it does not work. I checked the backend_assets.js to ensure that it is currectly imported.

However, it's still not working.

Anyway, I want to make a component that be used like <color_tip string='red' color='#FF0000'/>

Counld anyone give me any clue? It confused me for a while.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 24
1088
1
thg 5 23
2059
0
thg 3 15
2987
1
thg 3 15
4876
0
thg 1 25
720