File.prototype.htmlAttrs()

Returns HTML attributes to inject in a HTML tag so that client tools recognize the file.

Syntax

file.htmlAttrs() string

Description

Returns HTML attributes to inject in a HTML tag so that client tools recognize the file in the browser.

WARNING: the class o1-file MUST also be included otherwise the client tools will not make use of the attributes.

Examples

Typical example.