-
Notifications
You must be signed in to change notification settings - Fork 191
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
Change style options and a new setting for intializing #50
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,16 +49,19 @@ To add breaks in the video, simply add a new time (in seconds) in the list of br | |
}); | ||
|
||
### Customize marker style: | ||
The style of the markers could be modified by passing an optional setting "markerStyle" with your preference of css styles. | ||
The style of the markers could be modified by passing an optional setting "markerTip.style" with your preference of css styles. | ||
You can also customise each marker style on it's own. | ||
|
||
video.markers({ | ||
markerStyle: { | ||
'width':'8px', | ||
'background-color': 'red' | ||
markerTip: { | ||
style: { | ||
'width':'8px', | ||
'background-color': 'red' | ||
} | ||
}, | ||
markers: [ | ||
{time: 9.5, text: "this"}, | ||
{time: 16, text: "is"}, | ||
{time: 16, text: "is", style: {'background-color': 'yellow'}}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just took another look. Currently, we offer the ability to append class to marker object like Is there a scenario where you can't pass in a class name and need hardcoded style? |
||
{time: 23.6,text: "so"}, | ||
{time: 28, text: "cool"} | ||
] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm inclined to not make this change since it is a big breaking change to the API. Moving
markerStyle
tomarkerTip.style
isn't appropriate either because markerTip is used for the hover-over pointer thing.