{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"never","results":{"codes":[]},"params":[]},"next":{"description":"","pages":[]},"title":"isExtensionSupported(extension)","type":"fn","slug":"isextensionsupportedextension","excerpt":"","body":"Checks the specified extension and returns **True**, if files with this extension can be open online with rollMyFile API.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"if (rollMyFile.isExtensionSupported('.vsd')) {\\n  // Activate \\\"open online\\\" button for .vsd file\\n}\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Performance Tip\",\n  \"body\": \"This method would give better performance that straightforward looking for an extension in the list returned by *getSupportedExtensions*.\"\n}\n[/block]","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5ca0d9153101e900512259a1","githubsync":"","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"rollMyFile JavaScript API","slug":"rollmyfile-javascript-api","order":0,"from_sync":false,"reference":false,"_id":"5ca0d9153101e9005122599a","project":"54523fec04160008005b1cc8","createdAt":"2014-11-13T07:05:09.147Z","__v":0,"version":"5ca0d9153101e900512259aa"},"version":{"version":"3.0","version_clean":"3.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5ca0d9153101e9005122599a","5ca0d9153101e9005122599b","5ca0d9153101e9005122599c"],"_id":"5ca0d9153101e900512259aa","project":"54523fec04160008005b1cc8","__v":0,"forked_from":"57b557f0d3092517007cfac3","createdAt":"2016-08-18T06:38:40.018Z","releaseDate":"2016-08-18T06:38:40.018Z"},"__v":0,"project":"54523fec04160008005b1cc8","createdAt":"2014-11-17T17:03:13.840Z","user":"54523f0604160008005b1cc0","parentDoc":null}

isExtensionSupported(extension)


Checks the specified extension and returns **True**, if files with this extension can be open online with rollMyFile API. [block:code] { "codes": [ { "code": "if (rollMyFile.isExtensionSupported('.vsd')) {\n // Activate \"open online\" button for .vsd file\n}", "language": "javascript" } ] } [/block] [block:callout] { "type": "info", "title": "Performance Tip", "body": "This method would give better performance that straightforward looking for an extension in the list returned by *getSupportedExtensions*." } [/block]