Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

customeTime additional editable=false functionality. #3816

Merged
merged 2 commits into from
Feb 18, 2018

Conversation

jwschram
Copy link

I was interested in making a read-only customTime. I found issues #1296, #1698 and #3808, but I felt that this feature could be supported quite easily and so I added this patch.

I have attempted to match the code style by modifying the addCustomTime() method to accept an an options object. This object supports 1 key of editable as a boolean.

I have tested the solution and I think it does a reasonable job of matching style and intention, the only downside is that it makes no provision for changing the editable state by modifying the options. If the initial code review demonstrates an interest in the feature I can enhance it to support these changes.

Requisite updates have been made to:

  • core
  • customTime
  • css
  • examples
  • docs

This is my first contribution to visjs that is non-trivial so let me know if I've failed to meet expectation in code style, intention, documentation style, or submission procedure.

Thank you,

Copy link
Contributor

@yotamberk yotamberk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really awesome stuff. Thank you!

@yotamberk yotamberk merged commit 3405e87 into almende:develop Feb 18, 2018
mojoaxel pushed a commit to visjs/vis_original that referenced this pull request Jun 9, 2019
* customTime read-only (i.e. editable = false) patch.

* updated docs for read-only customTime patch
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants