plugins/registry.js
// - dropdown_text - string or React element shown for the dropdown button description
string or React element shown for the dropdown button description
string or React element shown for the dropdown button description
registerChannelHeaderButtonAction(icon, action, dropdownText) {
        const id = generateId();
        const data = {
            id,
            pluginId: this.id,
            icon: resolveReactElement(icon),
            action,
            dropdownText: resolveReactElement(dropdownText),
        };
        store.dispatch({
            type: ActionTypes.RECEIVED_PLUGIN_COMPONENT,
            name: 'ChannelHeaderButton',
            data,
        });
        store.dispatch({
            type: ActionTypes.RECEIVED_PLUGIN_COMPONENT,
            name: 'MobileChannelHeaderButton',
            data,
        });
        return id;
    }
registerChannelHeaderButtonAction ( icon , action , dropdownText ) { const id = generateId ( ) ; const data = { id , pluginId : this . id , icon : resolveReactElement ( icon ) , action , dropdownText : resolveReactElement ( dropdownText ) , } ; store . dispatch ( { type : ActionTypes . RECEIVED_PLUGIN_COMPONENT , name : 'ChannelHeaderButton' , data , } ) ; store . dispatch ( { type : ActionTypes . RECEIVED_PLUGIN_COMPONENT , name : 'MobileChannelHeaderButton' , data , } ) ; return id ; }
dropdown_text - string or React element shown for the dropdown button description
dropdown_text - string or React element shown for the dropdown button description