mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 11:21:20 -08:00
update docs
This commit is contained in:
1 parent
e069101c99
commit
7ff42596ef
56 files changed
+396
-175
No files matched your search
@@ -33,7 +33,7 @@ var art = new Artplayer({
|
||||
settings: [
|
||||
{
|
||||
width: 200,
|
||||
html: 'Custom Setting',
|
||||
html: 'Custom Selector',
|
||||
tooltip: 'Click This',
|
||||
icon: '<img width="22" heigth="22" src="/assets/img/indicator.svg">',
|
||||
selector: [
|
||||
@@ -44,12 +44,28 @@ var art = new Artplayer({
|
||||
{
|
||||
html: 'Setting 02',
|
||||
},
|
||||
{
|
||||
html: 'Setting 03',
|
||||
switch: false,
|
||||
onSwitch: function (item) {
|
||||
return !item.switch;
|
||||
},
|
||||
},
|
||||
],
|
||||
onSelect: function (item) {
|
||||
console.info('You clicked on the custom setting', item.html);
|
||||
console.info('You clicked on the custom selector', item.html);
|
||||
return item.html;
|
||||
},
|
||||
},
|
||||
{
|
||||
html: 'Custom Switch',
|
||||
icon: '<img width="22" heigth="22" src="/assets/img/state.svg">',
|
||||
switch: false,
|
||||
onSwitch: function (item) {
|
||||
console.info('You clicked on the custom switch', item.switch);
|
||||
return !item.switch;
|
||||
},
|
||||
},
|
||||
],
|
||||
contextmenu: [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user