mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-09 09:42:26 +00:00
rename typedef
This commit is contained in:
parent
5e5d7a8636
commit
02c968e676
1 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
// document.getElementById("popover-container").style.height = 0;
|
// document.getElementById("popover-container").style.height = 0;
|
||||||
class ConfigMenu {
|
class ConfigMenu {
|
||||||
/**
|
/**
|
||||||
* @typedef {Object} DribbblishConfigOptions
|
* @typedef {Object} DribbblishConfigItem
|
||||||
* @property {"checkbox" | "select" | "button" | "slider" | "number" | "text" | "time"} type
|
* @property {"checkbox" | "select" | "button" | "slider" | "number" | "text" | "time"} type
|
||||||
* @property {String|DribbblishConfigArea} [area={name: "Main Settings", order: 0}]
|
* @property {String|DribbblishConfigArea} [area={name: "Main Settings", order: 0}]
|
||||||
* @property {any} [data={}]
|
* @property {any} [data={}]
|
||||||
|
|
@ -16,7 +16,7 @@ class ConfigMenu {
|
||||||
* @property {showChildren} [showChildren]
|
* @property {showChildren} [showChildren]
|
||||||
* @property {onAppended} [onAppended]
|
* @property {onAppended} [onAppended]
|
||||||
* @property {onChange} [onChange]
|
* @property {onChange} [onChange]
|
||||||
* @property {DribbblishConfigOptions[]} [children=[]]
|
* @property {DribbblishConfigItem[]} [children=[]]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -42,7 +42,7 @@ class ConfigMenu {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @type {Object.<string, DribbblishConfigOptions>} */
|
/** @type {Object.<string, DribbblishConfigItem>} */
|
||||||
#config;
|
#config;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
@ -78,7 +78,7 @@ class ConfigMenu {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {DribbblishConfigOptions} options
|
* @param {DribbblishConfigItem} options
|
||||||
*/
|
*/
|
||||||
addInputHTML(options) {
|
addInputHTML(options) {
|
||||||
this.registerArea(options.area);
|
this.registerArea(options.area);
|
||||||
|
|
@ -106,7 +106,7 @@ class ConfigMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {DribbblishConfigOptions} options
|
* @param {DribbblishConfigItem} options
|
||||||
*/
|
*/
|
||||||
register(options) {
|
register(options) {
|
||||||
const defaultOptions = {
|
const defaultOptions = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue