Custom Status

IguanaX makes it very easy to implement a custom status for components. By status, we mean to show information about what the component is doing on the component’s card.

It’s super useful because you can really customize what the component shows which makes your interfaces much easier to understand.

Try out a basic example:

This is a basic example of how you can call the status API:

component.setStatus{data="Hello world!"}

Where would you call it?

It depends on what the component you are writing is doing. It’s a useful tool to be able to show in real time what a component is doing on the card.

Remember to make sure the component is either in development mode or run off a commit with the code. Seehttps://interfaceware.atlassian.net/wiki/spaces/IXB/pages/2650931201.

If you import the STATus library it has a couple of helper functions to format your code more nicely with HTML markup.

Import the library and try the code example:

local Status = STATrow("Age", 14); component.setStatus{data=Status}

Then when you look at the card you will see nicer formatting of this data: