Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden icon options for Models and Flows #295

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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