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

We need Format Strings and Variables #152

Open
rickmcgeer opened this issue Jan 20, 2023 · 0 comments
Open

We need Format Strings and Variables #152

rickmcgeer opened this issue Jan 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rickmcgeer
Copy link
Contributor

rickmcgeer commented Jan 20, 2023

This is for things like titles. For example, the year of the Presidential Election should be in large type in the title.

To do this, we should probably use ECMA Script strings , using backquotes and ${variable} syntax. It would be nice to use Python format string f'...{variable} syntax, but this might be problematic to implement -- corner cases, etc.

There needs to be a couple of things added here:

  1. A format string UI element, which could be either the existing textstring element or a new one
  2. A format for extracting a variable fro'm a filter

@merryman is the best person to comment on 1. As for 2, @rickmcgeer has already implemented strings for widgets in each Filter class, and can easily adapt this or something related. Getting the values is easy.

Assigning to @rickmcgeer and @merryman for discussion.

@rickmcgeer rickmcgeer added the enhancement New feature or request label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants