Skip to content

StyleRule

Not yet Class Other

Defines style properties which override properties on the instances affected by the Selector property.

Not implemented yet

This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.

0 Nova members · 25 modern Roblox members not implemented yet

Inheritance

Object → Instance → StyleBase → StyleRule

Properties

Member Signature Summary
Index Index: int —
Priority Priority: int A number that determines how properties of the StyleRule apply relative to the same properties in other StyleRules. Higher priority values take precedence over lower.
PropertiesSerialize PropertiesSerialize: BinaryString —
PropertyTransitionsSerialize PropertyTransitionsSerialize: BinaryString —
Selector Selector: string A string specifying which instances the StyleRule should affect.
SelectorError SelectorError: string A read-only string that displays errors from the Selector property.

Methods

Member Signature Summary
GetDefaultPropertyTransition StyleRule:GetDefaultPropertyTransition(): Variant Returns the default transition applied to all properties of the StyleRule that don't have an explicit transition set.
GetProperties StyleRule:GetProperties(): Dictionary Returns a dictionary of key-value pairs describing the properties of the StyleRule.
GetPropertiesResolved StyleRule:GetPropertiesResolved(): Dictionary —
GetProperty StyleRule:GetProperty(name: string): Variant Returns the value of a specific property in the StyleRule.
GetPropertyResolved StyleRule:GetPropertyResolved(name: string): Variant —
GetPropertyTransitions StyleRule:GetPropertyTransitions(): Dictionary Returns a dictionary of all property transitions set on the StyleRule.
SetDefaultPropertyTransition StyleRule:SetDefaultPropertyTransition(transitionParams: Variant): null Sets or clears a default transition that applies to all properties of the StyleRule that don't have an explicit transition set.
SetProperties StyleRule:SetProperties(styleProperties: Dictionary): null Lets you declare and set multiple properties of the StyleRule at once.
SetProperty StyleRule:SetProperty(name: string, value: Variant): null Sets or updates a single property of the StyleRule.
SetPropertyTransition StyleRule:SetPropertyTransition(property: string, transitionParams: Variant): null Sets or clears the transition for a single property on the StyleRule.
SetPropertyTransitions StyleRule:SetPropertyTransitions(properties: Dictionary): null Lets you declare and set transitions for multiple properties of the StyleRule at once.

Events

Member Signature Summary
StyleRulePropertyChanged StyleRulePropertyChanged(styleProperty: string) —

Roblox reference: StyleRule

Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.