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

I want create one input field and give a class as widget and get a value of it using javascript. this widget used more than once 

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

                <input t-att-type="widget.password ? 'password' : 'text'"
                    t-att-id="widget.id_for_label"
                    t-att-tabindex="widget.node.attrs.tabindex"
                    t-att-autofocus="widget.node.attrs.autofocus"
                    t-att-placeholder="widget.node.attrs.placeholder"
                    t-att-maxlength="widget.field.size"
                    name="kladr_city"
                />

 t-att-id="widget.id_for_label" what is the meaning of this line

 

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 20
3047
0
thg 2 18
3344
0
thg 9 17
4145
2
thg 11 15
633
1
thg 2 24
11919