Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5484 Widoki

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 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

                <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

 

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 20
2908
0
lut 18
3238
0
wrz 17
3979
2
lis 15
531
1
lut 24
11799