nosMedia

$container.nosMedia([options])

Transforms an <input type="hidden"> element into a media selector UI in Media Center using plugin inputFileThumb.

Arguments:
  • options (JSON) –

    Optional options

    mode:string. Can be image (default) or all.
    inputFileThumb:{}. options for inputFileThumb plugin.
$(:input).nosMedia();

$(:input).nosMedia({
        mode: 'image',
        inputFileThumb: {
                title: 'a title'
        }
});

See also

Media Selector.

nosMediaVisualise

$.nosMediaVisualise(media)

Displays a media, in a popup for images or in a new browser window for other documents (like PDF).

Arguments:
  • media (JSON) –

    Media parameters

    path:string. Media URL.
    image:boolean.
$.nosMediaVisualise({
        path: 'url/of/media/',
        image: true
});