set
[ Function ]
public static set(newValue: string): TcHmi.Errors;
Sets a new theme.
Parameter
Name | Type | Description |
---|---|---|
newValue | Name of the new theme |
Return value
Type | Description |
---|---|
Success or failure as a number. |
Available from version 1.10 |
Sample - JavaScript
var newTheme = 'myTheme';
var result = TcHmi.Theme.set(newTheme);
if(result === TcHmi.Errors.NONE){
// valid value
}