Hide
FieldAboveText / FieldBelowText

Like AboveText / BelowText, but it can be applied to an array/list to draw text above/below each element (instead of the label of array/list itself)

Using on a single field, it can show text on field like AboveText / BelowText does. Useful if you can not enable SaintsEditor

  • string|null richTextXml Same as RichLabel
  • bool isCallback=false Same as RichLabel
  • string groupBy = "" See GroupBy section
  • Allow Multiple: Yes
using SaintsField; [FieldAboveText("<color=DodgerBlue>┌<field/></color> at [<index/>]")] [FieldBelowText("
quot;
+ nameof(GetAboveText))] public string[] lis; private string GetAboveText(string value, int index) { bool isEven = index % 2 == 0; return isEven ?
quot;<color=
{EColor.SoftRed}>└Event" :
quot;<color=
{EColor.HotPink}>└Odd"; } [FieldAboveText("Can also be used on single fields: <label/>(raw value)=<field/>")] [FieldBelowText("
quot;
+ nameof(singleField))] // callback, as parsed value public string singleField;

full_width_label