Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can import this library to help you in creating Custom Statuses for your components.

This simple utility library can be used to help format component custom statuses using HTML.

There are two example functions for formatting the different types of status information you want displayed. You can use them like this:

Code Block
languagelua
-- Formatting an informational status by passing in a label and a value
local Status = STATrow("Filename", "ABC");
component.setStatus{data=Status}

-- Formatting an error by passing an error message
component.setStatus{data=STATerrorBlock("A problem has occured.")}

The main source file is here:

https://bitbucket.org/interfaceware/status/src/main/STATstatus.lua

Each function has help built in.