Create a custom attribute editor sized to fit your content with the breakout custom attribute feature.
custom
in the component meta definition file. Then create a meta definition JSON file and a script file for the trigger editor. In the script file, instantiate the breakout editor using the PageMgr.getCustomEditor
method. This method takes the ID of the breakout editor and an optional configuration object. Then add the breakout editor as a dependency.sfcc:valid
event from the breakout editor to indicate whether the value that the user selected in the breakout editor is valid. If the value is valid, Page Designer enables the Apply button in the breakout modal window footer. If the value is invalid, Page Designer disables the Apply button and optionally displays an error message.sfcc:value
event to Page Designer. The breakout editor file includes the code to implement the editor, and emits sfcc:valid
and sfcc:value
events to the trigger editor.© Copyright 2000-2023, Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. |
Show URL | Submit Feedback | Privacy Policy |