Spanish Total.js
English
Documentation For AI agents
Contents

Insert colours, icons and values

TotalEdit shows the colours and the Total.js icons that are in your code, and writes new ones for you, as well as identifiers, tokens and dates.

.md GitHub
On this page

Change a colour

A small square before each colour shows how it looks. It finds colours written as #hex, rgb() and hsl(), with or without transparency. Colours by name, such as red, have no square.

  1. Press the square, or press the right button on the colour and choose Change the colour…
  2. Choose another: move in the large area, the hue and the opacity, write its value, or take one of the colours of the same file.
  3. Press Esc, or click outside.

The code changes while you choose, and keeps the way it was written. HEX, RGB and HSL change it. Esc does not take back what you chose: undo it as any other change.

To write a new one, press the right button where you want it and choose Insert a colour…

Change a Total.js icon

An icon such as ti ti-home shows its drawing before its name.

  1. Press the drawing, or put the cursor on the name and press F6.
  2. Write what you look for, such as user. The arrows go from icon to icon.
  3. Press Enter, or the icon.

F6 anywhere else inserts an icon, with its class: ti ti-home.

The icons come from the Total.js CDN, cdn.componentator.com, when a file names one or you open the list. TotalEdit keeps them to work without a connection, and asks for them again when they are more than two weeks old.

Insert a value

Press the right button in the code and choose Insert UID, GUID, a token…

ChoiceWhat it writes
UID() of Total.jsAn identifier like those that UID() makes
GUIDA random GUID, with its hyphens
Random UID12 small letters and digits
Token35 letters and digits
Password20 characters, without those that are easy to confuse, such as l and 1
Date and timeThe time now, in UTC, such as 2030-01-31T10:20:30.000Z
TimestampThe time now, in milliseconds since 1970

With several cursors, each one gets its own identifier, token or password. What was selected is replaced.

All of them are also in the list of commands, under Insert.

Made in Europe