Yotam Berkowitz
2f2f5c4cc8
Commit before pull
8 years ago
yotamberk
cf75437692
Fix dragging items that have a React template ( #2211 )
* Hide vertically hidden ranged items in groups that are not visible
* Add element to templates options
* Fix comment typo
* Add documentation for react mounting
* add react example
* Fix typo
* fix title
* Fix review comments
* Add vis-drag-center to fix dragging bug when template is react component
8 years ago
Yotam Berkowitz
3addd51046
Add vis-drag-center to fix dragging bug when template is react component
8 years ago
yotamberk
d9598432d3
Fix React support for group and item templates and add example ( #2206 )
* Hide vertically hidden ranged items in groups that are not visible
* Add element to templates options
* Fix comment typo
* Add documentation for react mounting
* add react example
* Fix typo
* fix title
* Fix review comments
8 years ago
yotamberk
932dfb1754
Fix Vertical visibility for all item types ( #2143 )
* Hide vertically hidden ranged items in groups that are not visible
* Fix misspelling
* Fix examples that do not contain groups
* Add example for vertical hidden ranged items
* Fix indent format in RangeItem
* Fix example
* Fix other examples after addition of vertical hiding range items in groups
* Add case of zero margin axis
* Fix commented out lines in examples
* Fix vertical visibility bug
8 years ago
yotamberk
439aa79a68
Expose the item/group element in option.template and option.groupTemplate ( #2153 )
* Hide vertically hidden ranged items in groups that are not visible
* Add element to templates options
* Fix comment typo
* Add documentation for react mounting
8 years ago
Yotam Berkowitz
89a0bfd36a
Add element to templates options
8 years ago
Yotam Berkowitz
885ebffbce
fix delete btn and remove console.logs
8 years ago
Yotam Berkowitz
60d81a81e4
add events support for rtl
8 years ago
bertolds
f43e935bef
Issues #275 , #363 - individual Timeline items editable or readonly
Timeline will check for the property 'editable' on individual items.
if editable === true
ignore timeline option 'editable'
allow item to be edited
else if editable === false
ignore timeline option 'editable'
do not allow item to be edited
else
use timeline option 'editable'
If two items are selected and one is not editable, only the editable
item is draggable.
This change required the css class .vis-editable be moved from the
item set to the individual item containers to maintain proper styling.
9 years ago
jos
ac0563e408
Fit working (still needs simplification)
9 years ago
jos
1648604401
Halfway implementing improved Timeline.fit()
9 years ago
jos
09bc7d0993
Call event.stopPropagation() before adding or removing items (see #577 )
9 years ago
jos
bc3e4a26d1
Fixed #782 : Contents of items created from a template being unnecessary recreated on click, causing mouse events to get lost.
9 years ago
jos
b3e3dccad7
Refactored the css of Timeline and Graph2d to have a `vis-` prefix everywhere. (Still a small issue in Graph2d)
9 years ago
jos
88a9149369
Fixed preventDefault issue with hammer.js (a brute force solution but lets see how it goes...)
9 years ago
jos
34a576761c
The event handlers `onMove` and `onMoving` are now invoked with all item properties as argument, and can be used to update all properties (like content, className, etc) and add new properties as well
9 years ago
jos
2cf7d106ea
Call `event.stopPropagation()` before callback functions like onAdd, onRemove, etc. (see #577 )
9 years ago
jos
6818d68ba1
Neatly using hammer2 for the delete button
10 years ago
jos
e19502ebc7
Moving Timeline working with hammer2 (stop event propagation still an issue)
10 years ago
jos
3b08676a57
Halfway implementing hammerjs2 for Timeline
10 years ago
jos
727031283c
Background areas are now neatly ignored from stacking
10 years ago
jos
4a3acd623e
Fixed #331 : onclick events in items not working.
10 years ago
jos
807921b3cb
Implemented field `style` for both items and groups, to set a custom style for individual items.
10 years ago
jos
c87ef9819c
Support for 'style' added for Items
10 years ago
Alex de Mulder
d9e27b5d20
tweaked graph2d based on timeline. Introduced ignoreStacking for items, used in background item type.
10 years ago
jos
31e0c20f72
Simplified the background item support for empty/undefined contents
10 years ago
Alex de Mulder
8f63c115ee
updated background itemtype. No content is allowed now.
10 years ago
Dan Turkenkopf
37c4bfbaff
Write all item fields as data-? attributes on element
If the dataAttributes config option = 'all' then write every field as
data-? attributes on the element.
10 years ago
jos
8ba08c5a8b
Fixed #248 : Implemented support for templates
10 years ago
jos
b7a67920d5
Smarter check whether data changed when redrawing items. (See also #290 )
10 years ago
Dan Turkenkopf
386035180e
Define allowed dataAttributes as Timeline option
Read from an array of allowed dataAttributes at the timeline level and
write them as data- attributes on the item
10 years ago
jos
c8e8691d68
Added vis-light bundle
10 years ago
jos
72dfc0c45f
Reworked all code to commonjs modules. Replaced the build script with Gulp
10 years ago
jos
f0a5b12593
Moved source code from `/src/` to `/lib/`
10 years ago
jos
4ac1d3abcc
Moved utility functions `toScreen`, `toTime`, and `snap` from `options` to `body.util`
10 years ago
jos
0f45b7a2f1
Removed double function naming
10 years ago
jos
a5025b9673
Renamed all functions `repaint` to `redraw`
10 years ago
jos
e79c0772ad
Implemented dragging items from one group to another. Implemented detailed configuration of editable actions.
10 years ago
jos
463aee0ce9
Fixed removing items
10 years ago
jos
36e512cefb
Removed parameter `parent` from Item constructor
10 years ago
jos
58e81f3f70
Created a Group holding ungrouped items, for timelines not using groups
10 years ago
jos
5a5ba084a3
Isolated calculation of visible items in function updateVisibleItems
10 years ago
jos
50a316ea09
New Group starts working
10 years ago
jos
efd861003f
Inserted some more group functionality to ItemSet
10 years ago
josdejong
c886c6d66b
Removed reflow step from Panel, RootPanel, and ContentPanel
10 years ago
josdejong
8c16dad1ca
Simplified TimeAxis
10 years ago
josdejong
699c13d99b
Temporarily fixed stacking in a primitive way
10 years ago
josdejong
8717aac332
Refactored item selection
10 years ago
josdejong
740295165a
Rewritten ItemRange
10 years ago