Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5324 Представления

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 

Аватар
Отменить
Автор Лучший ответ

                <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

 

 

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
авг. 20
2604
0
февр. 18
3099
0
сент. 17
3830
2
нояб. 15
351
1
февр. 24
11657