set_string_value method

set_string_value

A method to set the string value with the specified unit. If the property attached to this value can’t accept the specified unit or the string value, the value will be unchanged and a DOMException will be raised.

def set_string_value(self, string_type, string_value):
    ...
ParameterTypeDescription
string_typeintType of the string.
string_valuestrThe string value.

See Also