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

single/multiple-choices: support for compile message with option label #6

Closed
andersonba opened this issue Sep 13, 2017 · 1 comment
Closed

Comments

@andersonba
Copy link
Owner

- name: colors
  options:
    - label: Black
      value: '#000'
    - label: White
      value: '#FFF'
 
- message: {{colors}} are colors

Result:

#000,#FFF are colors

Expected:

Black,White are colors
@andersonba
Copy link
Owner Author

SingleChoice usage

  ...
  options:
    - label: Black
      value: #000
    - label: White
      value: #fff
{{ color }} or {{ color.value }}
#000

{{ color.label }}
Black

MultipleChoice usage

  ...
  options:
    - label: One
      value: 1
    - label: Two
      value: 2
{{ numbers }}
1,2

{{ numbers.0.label }}
One

{{ numbers.0 }} or {{ numbers.0.value }}
1

andersonba pushed a commit that referenced this issue Oct 22, 2017
* Add timestamp to the message.

* store.replace: merge with default value

* fix css

* support to compile message using option label. closes #6

* update docs due to new changes

* Release 1.1.0

* update CHANGELOG

* Set webpack to have custom props for node and browser

Closes #18

* Add missing lib webpack-node-externals

* Remove missing comment in webpack config

* Set lodash as dependency

* Expect Type.parser method to be an async function

* Timestamp feature is now generic + tests

* # This is a combination of 2 commits.
# This is the 1st commit message:

Add timestamp to the message.

# This is the commit message #2:

Timestamp feature is now generic + tests

* Mock Date.now in bot with timestamp test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant