Unit
Direct Subclass:
Indirect Subclass:
Static Method Summary
Static Public Methods | ||
public static |
buildString(value: *, decimals: number) |
|
public static |
fromInternal(value: *) |
|
public static |
getUnit(name: *): * |
|
public static |
parse(string: *) |
|
public static |
register(cls: *) |
|
public static |
toInternal(value: *) |
|
public static |
unitDefine(): {"name": *, "uiname": *, "type": *, "icon": *, "pattern": *} |
|
public static |
validate(string: *): * |
Static Public Methods
public static buildString(value: *, decimals: number) source
Params:
Name | Type | Attribute | Description |
value | * | ||
decimals | number |
|
public static fromInternal(value: *) source
Params:
Name | Type | Attribute | Description |
value | * |
public static parse(string: *) source
Params:
Name | Type | Attribute | Description |
string | * |
public static register(cls: *) source
Params:
Name | Type | Attribute | Description |
cls | * |
public static toInternal(value: *) source
Params:
Name | Type | Attribute | Description |
value | * |
public static unitDefine(): {"name": *, "uiname": *, "type": *, "icon": *, "pattern": *} source
Return:
{"name": *, "uiname": *, "type": *, "icon": *, "pattern": *} |