More advanced expression editor
See original GitHub issueNow we’re getting close to the completion of adding basic expression support to the editor (see #223), here are my plans for more advanced editing. The approach is to add inline widgets into the JSON editor. A simple example is color
There is a demo of that here https://2354-84182601-gh.circle-artifacts.com/0/artifacts/build/index.html - note it just displays colors with a click handler right now, open ‘Zoomstack roads’ and go to the ‘sites’ layer, to see what’s in the screenshot.
Looking through the spec I believe we could add support for
- Color - via a color picker, this would be for any value that matches a color string regardless of spec.
- Number - from spec with min/max values defined
- Image - pick image ids from spritesheet, would pick up
["image", "foo"]
in expressions. - Enum - Any field spec that has a enum
I think color is probably the most important here because colors are the most tricky thing to get right in a design.
Anyway what do people think?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
About the advanced expression editor | Adobe Journey ...
The advanced expression editor offers a set of built-in functions and operators to let you manipulate values and define an expression that fits ......
Read more >Expression modes and expression editing
In Architect, use expression editing to build complex calculations by ... where you can access additional resources for the more complex expressions.
Read more >Using the Expression Editor - Informatica Documentation
You can evaluate expressions that you configure in the Expression Editor of an Expression transformation. When you test an expression, you can enter...
Read more >Advanced expression editors for views | SAP Help Portal
Either type the expression in the Mapping column of the Output Schema tab, or create more complex expressions in the Advanced Expression Editor...
Read more >Expression editor ‒ Qlik Cloud
Select a function from a specific category to insert it into the expression editor. You can use functions to generate more complex expressions....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@orangemug looks good from the first impression!
Would it be possible somehow to read the whole description from the style spec? Currently the description is cropped and ends with
...
From where are the available properties with description are coming from? Is there need to have special metadata properties in the data? What happens if this (meta-)data is not available?
@pathmapper I’ve removed this from v1.8.0 milestone, I think we should get the accessibility/deployment changes live first.