Div |
---|
|
fluid.computeNickName() Section |
---|
Column |
---|
| Compute a "nickname" given a fully qualified typename, by returning the last path segment. Code Block |
---|
| javascript |
---|
| javascript |
---|
bgColor | white |
---|
borderStyle | none |
---|
|
fluid.computeNickName(typeName);
|
File name: FileName.js Parameters Span |
---|
| typeName
| (Type) description |
|
Return Value Span |
---|
| String | The last path segment of the specified typeName |
|
|
| Examples Code Block |
---|
|
var shortName = fluid.computeNickName("fluid.uiOptions");
|
In this example, shortName would have a value of "uiOptions." Code Block |
---|
|
var nick = fluid.computeNickName("cspace.autocomplete.popup");
|
In this example, nick would have a value of "popup."
Code Block |
---|
| javascript | javascript |
var shortName = fluid.computeNickName("fluid.uiOptions");
|
In this s example, shortName
would have a value of "uiOptions."