mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
select-kit initial plugin api implementation (0.8.13)
``` api.modifySelectKit("identifier-of-the-select-targeted") .modifyContent((context, existingContent) => {}) .appendContent(() => {}) .prependContent(() => {}) .onSelect((context, val) => {}); ```
This commit is contained in:
@ -24,7 +24,7 @@ import { replaceFormatter } from 'discourse/lib/utilities';
|
||||
import { modifySelectKit } from "select-kit/mixins/plugin-api";
|
||||
|
||||
// If you add any methods to the API ensure you bump up this number
|
||||
const PLUGIN_API_VERSION = '0.8.12';
|
||||
const PLUGIN_API_VERSION = '0.8.13';
|
||||
|
||||
class PluginApi {
|
||||
constructor(version, container) {
|
||||
|
Reference in New Issue
Block a user