- Upload Suite Overview
- What's New?
- Choosing Upload Technology
- Evaluating Upload Suite
- Upload Suite Editions
- System Requirements
- Installation and Deployment Notes
- ActiveX/Java Uploader
- Where ActiveX/Java Uploader Can Be Useful
- Before You Started with ActiveX/Java Uploader
- ActiveX/Java Uploader Fundamentals
- ActiveX/Java Uploader User Interface
- Getting Started
- Using ActiveX/Java Uploader
- Troubleshooting
- Reference
- ActiveX/Java Uploader ASP.NET Reference
- ActiveX/Java Uploader PHP Reference
- ActiveX/Java Uploader JavaScript Reference
- $au Namespace ActiveX/Java Uploader JavaScript
- activeXControl Class ActiveX/Java Uploader JavaScript
- addFilesProgressDialog Class ActiveX/Java Uploader JavaScript
- authenticationDialog Class ActiveX/Java Uploader JavaScript
- contextMenu Class ActiveX/Java Uploader JavaScript
- converter Class ActiveX/Java Uploader JavaScript
- converters Class ActiveX/Java Uploader JavaScript
- debug Class ActiveX/Java Uploader JavaScript
- deleteFilesDialog Class ActiveX/Java Uploader JavaScript
- descriptionEditor Class ActiveX/Java Uploader JavaScript
- detailsViewColumns Class ActiveX/Java Uploader JavaScript
- event Class ActiveX/Java Uploader JavaScript
- events Class ActiveX/Java Uploader JavaScript
- file Class ActiveX/Java Uploader JavaScript
- files Class ActiveX/Java Uploader JavaScript
- folderPane Class ActiveX/Java Uploader JavaScript
- imageEditor Class ActiveX/Java Uploader JavaScript
- informationBar Class ActiveX/Java Uploader JavaScript
- installationProgress Class ActiveX/Java Uploader JavaScript
- javaControl Class ActiveX/Java Uploader JavaScript
- messages Class ActiveX/Java Uploader JavaScript
- metadata Class ActiveX/Java Uploader JavaScript
- paneItem Class ActiveX/Java Uploader JavaScript
- qualityMeter Class ActiveX/Java Uploader JavaScript
- restrictions Class ActiveX/Java Uploader JavaScript
- statusPane Class ActiveX/Java Uploader JavaScript
- thumbnail Class ActiveX/Java Uploader JavaScript
- thumbnailEvents Class ActiveX/Java Uploader JavaScript
- treePane Class ActiveX/Java Uploader JavaScript
- uploadPane Class ActiveX/Java Uploader JavaScript
- uploadPane Members ActiveX/Java Uploader JavaScript
- uploadPane Methods ActiveX/Java Uploader JavaScript
- uploadPane Properties ActiveX/Java Uploader JavaScript
- dropFilesHereImageFormat Property ActiveX/Java Uploader JavaScript
- dropFilesHereMacImageFormat Property ActiveX/Java Uploader JavaScript
- dropFilesHereMacText Property ActiveX/Java Uploader JavaScript
- dropFilesHereText Property ActiveX/Java Uploader JavaScript
- previewSize Property ActiveX/Java Uploader JavaScript
- sortMode Property ActiveX/Java Uploader JavaScript
- tileHeight Property ActiveX/Java Uploader JavaScript
- tilePreviewSize Property ActiveX/Java Uploader JavaScript
- tileTemplate Property ActiveX/Java Uploader JavaScript
- tileWidth Property ActiveX/Java Uploader JavaScript
- viewMode Property ActiveX/Java Uploader JavaScript
- uploadProgressDialog Class ActiveX/Java Uploader JavaScript
- uploadSettings Class ActiveX/Java Uploader JavaScript
- uploader Class ActiveX/Java Uploader JavaScript
- $au.amazonS3Extender Namespace ActiveX/Java Uploader JavaScript
- $au Namespace ActiveX/Java Uploader JavaScript
- ActiveX/Java Uploader Client-Side Events Reference
- POST Field Reference
- HTML5/Flash Uploader
- Licensing Information
- Legal Notices
uploadPane.tileTemplate Property ActiveX/Java Uploader JavaScript
Supported browsers:



Gets or sets an HTML-like template of the data displayed inside a tile.
Syntax
JavaScript
Initialize
$au.uploader({
uploadPane: {
//...other params...
tileTemplate: "<p>[FileName]</p><p style="color: #555555">[FileType] [FileSize]</p>",
//...other params...
}
})
Property Value
Type: String
HTML-like template of the data, which is displayed inside the tile in the upload pane.Default value is "<p>[FileName]</p><p style="color: #555555">[FileType] [FileSize]</p>".
Remarks
A tile template is a string, which can include simple text, HTML tags, and predefined variables. Within a template you can use the following:
- tags:
<p>and<span> - attributes:
style,rows(for<p>tag only),width(for<span>tag only; in percents or in pixels), andalign(for<span>tag only; can beleft,right, andcenter) - styles:
color,font-size(percent value, pixels like12px, or points like10pt),font-style(italicornormal), andfont-weight(boldornormal)
The following predefined variables are available in templates:
| Variable name | Returned value |
|---|---|
FileName | file name |
FileSize | file size |
FileType | file type |
DateModified | file last modification date |
Dimensions | image size in pixels; an empty string for non-image files |
Description | user-given description of the file |
Tag | tag of the file; the tag can be specified via the tag property |
To utilize a predefined variable in a template, you should put variable's name in square brackets.
Note
White spaces are not allowed between the '<' and the tag name, between '</' and the tag name, or inside '/>'.
The sample below demonstrates how to use tags, style, and predefined variables described previously; you can see the resulting tiles in the following figure:
JavaScript
var u = $au.uploader({
id: 'Uploader1',
folderPane: {viewMode: 'Tiles', tileHeight: '100', tileWidth: '250', tilePreviewSize: '100',
tileTemplate: '<p>[fileName]</p><p style="font-size: 85%; color: #555555" >Size: ' +
'<span style="font-weight: bold; color: #000000">[FileSize]</span></p>' +
'<p style="font-size: 85%; color: #555555" >Resolution: ' +
'<span style="font-weight: bold; color: #000000">[Dimensions]</span></p>' +
'<p rows="3" style="font-size: 85%; color: #555555">Description: ' +
'<span style="font-weight: bold; color: #000000">[Description]</span></p>'
}
});
u.writeHtml();See Also
Reference
- Aurigma.ImageUploader.UploadPane.TileTemplate ASP.NET PropertyActiveX/Java Uploader
- UploadPane.TileTemplate PHP PropertyActiveX/Java Uploader