You need to sign in to do that
Don't have an account?
Luke@TWS
Trying to implement something similar to the above code but it throws the error:
Compile Error: Expression of type System.SelectOption has no member named style
and also does the same for the other properties. How do you set the properties like style?
Acess properties of selectOption
Code:
List<SelectOption> options = new List<SelectOption>(); SelectOption option = new SelectOption('code','description'); option.style.fontWeight = 'bold'; options.add(option);
Trying to implement something similar to the above code but it throws the error:
Compile Error: Expression of type System.SelectOption has no member named style
and also does the same for the other properties. How do you set the properties like style?
You can't access tag attributes like that in Apex code.