Closure Library API Documentation
Go to class or file:
ui.IdGenerator
Extends
Object
Creates a new id generator.
Useful links
Source Code
Inheritance
Object
goog.ui.IdGenerator
Constructor
goog.ui.IdGenerator(
)
Instance Methods
Public
Protected
Private
Defined in
goog.ui.IdGenerator
getNextUniqueId
()
⇒
string
Gets the next unique ID.
Returns:
string
The next unique identifier.
code »
Instance Properties
Defined in
goog.ui.IdGenerator
nextId_
:
number
Next unique ID to use
Code »
Static Properties
goog.ui.IdGenerator.
instance
:
goog.ui.IdGenerator
Default instance for id generation. Done as an instance instead of statics so it's possible to inject a mock for unit testing purposes.
Code »
Package ui
Package Reference