MindFusion.Charting for JavaScript Programmer's Guide
IdGenerator.generate Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

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

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

### Return Value

Type: String
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

IdGenerator Members
IdGenerator Class
MindFusion.Common Namespace