2
ファイル選択フィールドのコンポーネントと、隣り合って表示するラベル(右のラベル)があります。それらはどちらも関数内に配置されています。フィールドのラベルではなく、アップロードフィールドのファイルサイズを警告するテキストだけです。これはコードです:ExtJSのフィールドの隣にあるラベル4
this.fileUploadField = Ext.widget('filefield',
{
fieldLabel: 'Select a file:',
name:'file',
width: 200,
buttonText: 'Button' });
items.push(
this.fileUploadField,
{
xtype: 'label',
style: 'color:red',
text: 'I'm the label that wants to appear on the right of the file upload field',
name:'fileSizeLimit'
}
);
を!どうもありがとう! :) – ArtanisAce