docs » plugins.core.menu.manager.section
Controls sections for the CommandPost menu.
- Constants - Useful values which cannot be changed
- DEFAULT_PRIORITY
- SECTION_DISABLED_PREFERENCES_KEY_PREFIX
- Methods - API calls which can only be made on an object returned by a constructor
- addApplicationHeading
- addHeading
- addItem
- addItems
- addMenu
- addSection
- addSeparator
- generateTable
- getDisabledPreferenceKey
- isApplicationHeading
- isDisabled
- new
- setDisabledFn
- setDisabledPreferenceKey
Signature | plugins.core.menu.manager.section.DEFAULT_PRIORITY -> number |
---|---|
Type | Constant |
Description | The default priority |
Signature | plugins.core.menu.manager.section.SECTION_DISABLED_PREFERENCES_KEY_PREFIX -> string |
---|---|
Type | Constant |
Description | The preferences key prefix for a disabled section. |
Signature | plugins.core.menu.manager.section:addApplicationHeading(title) -> section |
---|---|
Type | Method |
Description | Adds a heading to the top of the section. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:addHeading(title) -> section |
---|---|
Type | Method |
Description | Adds a heading to the top of a section. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:addItem(priority, itemFn) -> section |
---|---|
Type | Method |
Description | Registers a function which will generate a single table item. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:addItems(priority, itemsFn) -> section |
---|---|
Type | Method |
Description | Registers a function which will generate multiple table items. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:addMenu(priority, titleFn) -> section |
---|---|
Type | Method |
Description | Adds a new sub-menu with the specified priority. The section that will contain |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:addSection(priority, itemFn) -> section |
---|---|
Type | Method |
Description | Adds a new sub-section with the specified priority. The new sub-section is returned. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:addSeparator(priority) -> section |
---|---|
Type | Method |
Description | Adds a new seperator with specified priority. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:generateTable() -> table |
---|---|
Type | Method |
Description | Generates a new menu table based on the registered items and sections inside this section. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:getDisabledPreferenceKey() -> string |
---|---|
Type | Method |
Description | Gets the disabled preferences key. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:isApplicationHeading() -> boolean |
---|---|
Type | Method |
Description | Does this section contain an application heading? |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:isDisabled() -> boolean |
---|---|
Type | Method |
Description | Gets the disabled status |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:new() -> section |
---|---|
Type | Method |
Description | Creates a new menu section, which can have items and sub-menus added to it. |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:setDisabledFn(disabledFn) -> self |
---|---|
Type | Method |
Description | Sets the Disabled Function |
Parameters |
|
Returns |
|
Signature | plugins.core.menu.manager.section:setDisabledPreferenceKey(key) -> self |
---|---|
Type | Method |
Description | Sets the Disabled Preferences Key. |
Parameters |
|
Returns |
|