This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-vis
mirror of
https://github.com/jrtechs/vis.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
82
Wiki
Activity
Browse Source
Updated history
v3_develop
jos
10 years ago
parent
eb7b73359b
commit
b393fd1756
2 changed files
with
5 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
HISTORY.md
+4
-0
examples/timeline/23_data_attributes.html
+ 1
- 0
HISTORY.md
View File
@ -16,6 +16,7 @@ http://visjs.org
### Timeline
### Timeline
- Implemented support for attaching HTML attributes to items.
- Fixed moment.js url in localization example.
- Fixed moment.js url in localization example.
- Fixed
`className`
of groups not being updated when changed.
- Fixed
`className`
of groups not being updated when changed.
- Fixed the
`id`
field of a new item not correctly generated.
- Fixed the
`id`
field of a new item not correctly generated.
+ 4
- 0
examples/timeline/23_data_attributes.html
View File
@ -13,6 +13,10 @@
<
link
href
=
"../../dist/vis.css"
rel
=
"stylesheet"
type
=
"text/css"
/
>
<
link
href
=
"../../dist/vis.css"
rel
=
"stylesheet"
type
=
"text/css"
/
>
<
/
head
>
<
/
head
>
<
body
>
<
body
>
<
p
>
In this example all items get an HTML attribute attached: each item gets an attribute
<
code
>
data-id
<
/
code
>
, and items 1 and 6 have an additional attribute
<
code
>
data-tooltip
<
/
code
>
.
<
/
p
>
<
div
id
=
"visualization"
>
<
/
div
>
<
div
id
=
"visualization"
>
<
/
div
>
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
Write
Preview
Loading…
Cancel
Save