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

idea for new widget: agenda #131

Merged
merged 6 commits into from Jun 23, 2016
Merged

idea for new widget: agenda #131

merged 6 commits into from Jun 23, 2016

Conversation

hypetsch
Copy link
Contributor

had time to play around a little bit and therefore created a new widget to display calview entries in another way. feel free to reuse my code.

image

  • configuration:
    • data-max: maxmimum number of entries to show
    • data-config: json to specify settings. e.g:
      data-config='{ "source1" : {"color":"#1C8C7A", "abbreviation":"F"}, "source2" : {"color":"#7D786F", "icon":"fa-ambulance"} }'
      • source1, source2: names of CALVIEW entry source where config applies to
      • icon: fa icon to use for entry
      • abbreviation: character to use as symbol if no icon specified
      • color: background color used for entry
  • todo: refactoring, code/html cleanup
  • known issues:
    • layout issue when summary of entry exceeds one line
  • untested: oa icon support

- data-max: maxmimum number of entries to show
- data-config: json to specify settings. e.g:
  data-config='{ "source1" : {"color":"#1C8C7A", "abbreviation":"F"}, "source2" : {"color":"#7D786F", "icon":"fa-ambulance"} }'
  ... source1, source2: names of CALVIEW entry source where config applies to
  ... icon: fa icon to use for entry
  ... abbreviation: character to use as symbol if no icon specified
  ... color: background color used for entry

* todo: refactoring, code/html cleanup
* known issues:
  - layout issue when summary of entry exceeds one line
* untested: oa icon support
* data-factor="<numeric>" ... manipulates numeric value by multiplying
                              value = value * factor
* data-postfix="<text>"   ... adds postfix to value w/o having to use substitution
                              value = value + postfix
* data-suffix="<text>"    ... adds suffix to value w/o having to use substitution
                              value = suffix + value
@hypetsch
Copy link
Contributor Author

...also added some new config values for the label widget

@knowthelist
Copy link
Owner

Thanks! I'll have a look at your request as soon as I finished my current tasks ...

@knowthelist knowthelist merged commit b823dde into knowthelist:master Jun 23, 2016
@hypetsch
Copy link
Contributor Author

Hallo, habe gerade gesehen dass du gemerged hast. Hätte inzwischen auch eine v2.2 Version. Falls du die willst gib Bescheid.

@hypetsch hypetsch mentioned this pull request Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants