How to use the metal/src/core.isFunction function in metal

To help you get started, we’ve selected a few metal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchResultsLayouts.es.js View on Github external
if (this.debug) {
			console.log("GSearchResultsLayout.rendered()");
		}
	}
}
	
/** 
 * State definition.
 * 
 * @type {!Object}
 * @static
 */
GSearchResultsLayouts.STATE = {
	getQueryParam: {
		validator: core.isFunction
	},
	templateParameters: {
		value: ['resultsLayout']
	},
	setQueryParam: {
		validator: core.isFunction
	}
};

// Register component

Soy.register(GSearchResultsLayouts, templates);

export default GSearchResultsLayouts;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchPaging.es.js View on Github external
_self.setQueryParam('start', value, true, false);
			    }
			}
		});			
	}
}

/** 
 * State definition.
 * 
 * @type {!Object}
 * @static
 */
GSearchPaging.STATE = {
	getQueryParam: {
		validator: core.isFunction
	},
	setQueryParam: {
		validator: core.isFunction
	}
};

// Register component

Soy.register(GSearchPaging, templates);

export default GSearchPaging;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchResultsLayouts.es.js View on Github external
/** 
 * State definition.
 * 
 * @type {!Object}
 * @static
 */
GSearchResultsLayouts.STATE = {
	getQueryParam: {
		validator: core.isFunction
	},
	templateParameters: {
		value: ['resultsLayout']
	},
	setQueryParam: {
		validator: core.isFunction
	}
};

// Register component

Soy.register(GSearchResultsLayouts, templates);

export default GSearchResultsLayouts;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchFacets.es.js View on Github external
}

/**
 * State definition.
 * @type {!Object}
 * @static
 */
GSearchFacets.STATE = {
	debug: {
		value: false
	},
	facetFields: {
		value: null
	},
	getQueryParam: {
		validator: core.isFunction
	},
	initialQueryParameters: {
		value: null
	},
	setQueryParam: {
		validator: core.isFunction
	}
};

// Register component

Soy.register(GSearchFacets, templates);

export default GSearchFacets;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchField.es.js View on Github external
},
	initialQueryParameters: {
		value: null
	},
	isSearching: {
		internal: true,
		value: false
	},
	getQueryParam: {
		validator: core.isFunction
	},
	queryMinLength: {
		value: 3
	},
	setQueryParam: {
		validator: core.isFunction
	},
	suggestionsURL: {
		value: null
	}
};

// Register component

Soy.register(GSearchField, templates);

export default GSearchField;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchSort.es.js View on Github external
* 
 * @type {!Object}
 * @static
 */
GSearchSort.STATE = {
	debug: {
		value: false
	},
	getQueryParam: {
		validator: core.isFunction
	},
	initialQueryParameters: {
		value: null
	},
	setQueryParam: {
		validator: core.isFunction
	},
	sortOptions: {
		value: null
	},
	sortFieldOptionsMenu: {
		value: null
	},
	templateParameters: {
		value: ['sortField','sortDirection']
	}
};

// Register component

Soy.register(GSearchSort, templates);
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchPaging.es.js View on Github external
});			
	}
}

/** 
 * State definition.
 * 
 * @type {!Object}
 * @static
 */
GSearchPaging.STATE = {
	getQueryParam: {
		validator: core.isFunction
	},
	setQueryParam: {
		validator: core.isFunction
	}
};

// Register component

Soy.register(GSearchPaging, templates);

export default GSearchPaging;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchResults.es.js View on Github external
/** 
 * State definition.
 * 
 * @type {!Object}
 * @static
 */
GSearchResults.STATE = {
		
	assetTagParam: {
		value: null
	},
	debug: {
		value: false
	},
	getQueryParam: {
		validator: core.isFunction
	},
	portletNamespace: {
		value: null
	},
	resultLayoutOptions: {
		value: null
	},
	setQueryParam: {
		validator: core.isFunction
	},
	showAssetTags: {
		value: false
	}
};

// Register component
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchFacets.es.js View on Github external
*/
GSearchFacets.STATE = {
	debug: {
		value: false
	},
	facetFields: {
		value: null
	},
	getQueryParam: {
		validator: core.isFunction
	},
	initialQueryParameters: {
		value: null
	},
	setQueryParam: {
		validator: core.isFunction
	}
};

// Register component

Soy.register(GSearchFacets, templates);

export default GSearchFacets;
github peerkar / liferay-gsearch / gsearch-web / src / main / resources / META-INF / resources / view-templates / GSearchHYMenus.es.js View on Github external
* State definition.
 * @type {!Object}
 * @static
 */
GSearchHYMenus.STATE = {
	datePickerFormat: {
		value: 'dd-mm-yyyy'
	},
	debug: {
		value: false
	},
	facetFields: {
		value: null
	},
	getQueryParam: {
		validator: core.isFunction
	},
	initialQueryParameters: {
		value: null
	},
	setQueryParam: {
		validator: core.isFunction
	},
	templateParameters: {
		value: ['time', 'hf', 'unit']
	}	
	
};

// Register component

Soy.register(GSearchHYMenus, templates);