The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
wekan/packages/wekan-cfs-collection-filters/internal.api.md

1.8 KiB

Public and Private API

API documentation automatically generated by docmeteor.


File: "filters.js" Where: {client|server}


fsCollection.filters(filters)  Anywhere

This method filters is defined in prototype of FS.Collection

Arguments

  • filters {Object}

File filters for this collection.

Returns {undefined}

FS.Collection.prototype.filters = function fsColFilters(filters) { ... filters.js:7

fsCollection.allowsFile()  Anywhere

This method allowsFile is defined in prototype of FS.Collection

Returns {boolean} True if the collection allows this file.

Checks based on any filters defined on the collection. If the file is not valid according to the filters, this method returns false and also calls the filter onInvalid method defined for the collection, passing it an English error string that explains why it failed.

FS.Collection.prototype.allowsFile = function fsColAllowsFile(fileObj) { ... filters.js:108

contentTypeInList(list, contentType)  undefined

This method is private

Arguments

Array of content types

  • contentType {String}

The content type

Returns {Boolean}

Returns true if the content type is in the list, or if it matches one of the special types in the list, e.g., "image/*".

function contentTypeInList(list, contentType) { ... filters.js:169