2013-06-13 5 views
0

Par exemple, un champ de texte simple, ExtJS génère du HTML comme ci-dessous,ajouter attribut personnalisé Html dans ExtJS 3.3

<INPUT type=text name="txtNAME1" id="txtNAME1"> 

Pour cela, je veux ajouter mon propre attribut (DisplayName) comme ci-dessous,

<INPUT type=text name="txtNAME1" id="txtNAME1" displayName="dspNAME1"> 
+1

un coup d'oeil à cette question: [Comment ajouter des attributs à ExtJs rendu Data- html?] [1] [1]: http://stackoverflow.com/questions/15959867/how- to-add-data-attributes-à-extjs-rendered-html – Christoph

+0

@ChristophHartmann Merci beaucoup ça marche bien et bien –

Répondre

0

L'option autoCreate vous permet de personnaliser l'élément généré.

Questions connexes