This commit is contained in:
Harvey authored and Harvey Zack committed 2022-02-11 11:20:54 +08:00
1 parent 5e9057f060
commit 4d66a8538d
18 files changed
+137 -118

No files matched your search

+19 -2
View File
@@ -550,7 +550,7 @@ var art = new Artplayer({
- Type: `Array`
- Default: `[]`
Initialize custom setting panel, please visit [How to add setting](/document/Questions/)
Initialize custom setting panel, please visit [How to add setting panel](/document/en/Questions/How%20to%20add%20setting%20panel)
<div className="run-code">▶ Run Code</div>
@@ -562,7 +562,24 @@ var art = new Artplayer({
settings: [
{
html: 'Custom setting 01',
items: [
children: [
{
html: 'Submenu 01',
click: function() {
console.log('You click on the submenu 01');
}
},
{
html: 'Submenu 02',
click: function() {
console.log('You click on the submenu 02');
}
},
]
},
{
html: 'Custom setting 02',
children: [
{
html: 'Submenu 01',
click: function() {
@@ -0,0 +1,4 @@
---
title: How to add setting panel
sidebar_position: 6
---
@@ -1,4 +0,0 @@
---
title: How to add setting
sidebar_position: 6
---