set_composer_header_items - add links in the composer's header
set_composer_header_items is a method in the Midrub Emails Composer which allows you to add links in the Midrub Emails Composer's header.
By default the composer's header don't has nothing. The header could even be disabled.
The set_composer_header_items has these parameters:
- name - contains a string with the item's name. Will be used as item's text.
- location - contains (left|center|right) strings which says where will be added the item.
- slug - containts the item's slug and it's used as a link.
- dropdown - contains boolean value which says if the item is a dropdown or no.
- run - contains the function with one parameter. When user clicks on the menu's item, will be provided to run the event and then you can process the data.
Suggested Articles
- How to export the email templates as HTML code
- How to translate the Midrub Emails Composer
- How to change the icons in the Midrub Emails Composer
- set_methods - sets default methods
- How to add default settings to a Midrub Emails Composer's template
- helper_setup_template - generates the template's JSON code
- helper_run_lib - provides parameters to the run function
- How to export the Midrub Emails Composer's templates as a JSON's code
- set_composer_header_items - how to add dropdown
- set_composer_header_items - add links in the composer's header