Skip to content

Conversation

@fmerges
Copy link
Contributor

@fmerges fmerges commented Feb 18, 2020

An undocumented but nice feature for addon labels on Models and button labels of Flows.

@xlotlu
Copy link
Contributor

xlotlu commented Apr 23, 2020

@fmerges I haven't tested this, bot looking at the code

    const iconData = label.match(/^\[\[\s*(.*?)\s*(;\s*(.*?))?\s*\]\]$/)

to be considered an icon that has to be enclosed in [[ double square brackets ]]. There is also another optional parameter separated by a semicolon, that provides for rotation.

Given the amount of text needed, I'd leave the original paragraph in docs/models/contents.lr as is, and start after it with something like, "If this string is enclosed in double square brackets, it is considered to be the name for a fa-icon ... etc.". An example would be nice too.

@dairiki dairiki force-pushed the master branch 2 times, most recently from 75792c7 to 7b6c4b0 Compare July 27, 2022 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants