new ChaptersTrackMenuItem(player, optionsopt)
Creates an instance of this class.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| player | Player | The  | |
| options | Object | <optional> | The key/value store of player options. | 
Extends
Methods
- 
    
        createEl(typeopt, propsopt, attrsopt) → {Element}
- 
    
    Create the `MenuItem's DOM element Parameters:Name Type Attributes Default Description typestring <optional> 
 li Element's node type, not actually used, always set to li.propsObject <optional> 
 {} An object of properties that should be set on the element attrsObject <optional> 
 {} An object of attributes that should be set on the element Returns:Element -The element that gets created. - Inherited From:
 
- 
    
        handleClick(eventopt)
- 
    
    This gets called when an ChaptersTrackMenuItemis "clicked". See ClickableComponent for more detailed information on what a click can be.Parameters:Name Type Attributes Description eventEventTarget~Event <optional> 
 The keydown,tap, orclickevent that caused this function to be called.Listens to Events:- event:tap
- event:click
 - Overrides:
 
- 
    
        selected(selected)
- 
    
    Set the state for this menu item as selected or not. Parameters:Name Type Description selectedboolean if the menu item is selected or not - Inherited From:
 
- 
    
        update(eventopt)
- 
    
    Update chapter menu item Parameters:Name Type Attributes Description eventEventTarget~Event <optional> 
 The cuechangeevent that caused this function to run.Listens to Events:- TextTrack#event:cuechange