Search
IdGenerator.generate Method
See Also
 






Generates a new id that starts with the specified prefix.

Namespace: MindFusion.Common
File: IdGenerator.js

 Syntax

JavaScript  Copy Code

function generate (prefix)

 Parameters

prefix

String. A prefix to insert at the beginning of the identifier.

 Return Value

String. A string containing the generated identifier.

 Example

This code generates a random id starting with the prefix "APP".

JavaScript  Copy Code
var id = IdGenerator.generate('APP');

 See Also