Versions Compared

Key

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

IguanaX makes it very easy to implement custom status statuses 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:

Expand
titleUse component.setStatus{data=Text}

Make a component and use this:

Code Block
component.setStatus{data="Hello world!"}
Expand
titleWhen you run the component you will see Hello world! in the status at the bottom of the component card

Remember to make sure the component is either in development mode or run off a commit with the code. See:Using the DEVELOPMENT Commit.

Expand
titleYou can use HTML to format the status - and we provide a simple example library to do that

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:

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

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

...