Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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:

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

-- Format 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.

  • No labels