Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
allowBlank: false必須フィールドのアスタリスク インジケータ ( ) の位置をフィールド ラベルの前に変更する必要があります。以下の画像のように:
allowBlank: false
sencha docs で適切な方法が見つかりません。
ここに同様の質問がありますが、ExtJs 4.2 では機能しません。
afterLabelTplafterLabelTextTpl追加されており4.1.0、必要なことを正確に行う必要があります。
afterLabelTpl
afterLabelTextTpl
4.1.0
{ xtype : 'label', html:'<span>First Name</span><span style="color: rgb(255, 0, 0); padding-left: 2px;">*</span>', width:50, }
これを試してみてください。