XF 2.0 Style Property Default Value?

Sadik B

Well-known member
Maybe I am missing something obvious. How does one set a default value for a number style property? In XF 1 we could do Scalar with default value. How does specify the default value in XF 2?

Thanks
 
Set it in the master style.


Fillip
Hey Fillip, Sorry I don't follow. I am creating a style property (width) for my addon. Are you saying that instead of the style property which the user can change I should just put a default value in the css in the master style? Or maybe I am misunderstanding you entirely. Could you please give an example.

Thanks
 
When you've created that property in master style, simply set value after creating property (while still editing master style) and submit form. That will make it default value. Users can customize it in child styles.
 
When you've created that property in master style, simply set value after creating property (while still editing master style) and submit form. That will make it default value. Users can customize it in child styles.
Ah I see. Thanks Arty.
 
Top Bottom