Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5559 Visualizzazioni

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 

Avatar
Abbandona
Autore Risposta migliore

                <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

 

 

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ago 20
2992
0
feb 18
3321
0
set 17
4087
2
nov 15
617
1
feb 24
11892