API ReferenceSandbox.UI
MixinDefinitionclass
Represents a parsed @mixin definition that can be included elsewhere.
object→MixinDefinition
Constructors1
Showing 1 constructors
public MixinDefinition()
No results match this filter.
Methods1
Showing 1 methods
public string Expand(System.Collections.Generic.Dictionary`2<string,string> arguments, string contentBlock = null)
| Parameter | Type | Description |
|---|---|---|
| arguments | Dictionary<string,string> | — |
| contentBlock = null | string | — |
Returns:
string—No results match this filter.
Properties6
Showing 6 properties
public string Sandbox.UI.MixinDefinition.Content { get; set; }
The raw content of the mixin body, to be expanded when included. This includes nested rules which will be parsed during expansion.
Returns:
string—public int Sandbox.UI.MixinDefinition.FileLine { get; set; }
Source line for error messages
Returns:
int—public string Sandbox.UI.MixinDefinition.FileName { get; set; }
Source file for error messages
Returns:
string—public bool Sandbox.UI.MixinDefinition.HasVariadicParameter { get; set; }
Whether this mixin has a variadic parameter (last param ends with ...)
Returns:
bool—public string Sandbox.UI.MixinDefinition.Name { get; set; }
The name of the mixin (e.g., "button" from "@mixin button")
Returns:
string—public System.Collections.Generic.List`1<Sandbox.UI.MixinParameter> Sandbox.UI.MixinDefinition.Parameters { get; set; }
Parameter definitions in order, with optional default values. Key = parameter name (without $), Value = default value (null if required)
No results match this filter.