Configure Border Frames
PhotoEditor SDK supports several configuration options for the
FrameToolPanel allowing flexible adaptation to different needs and use cases.
Set available tools#
By default, all available frame tools are enabled.
In our example, we remove the option to change the frame width and only allow replacing it and changing its opacity. We do this by setting the
optionList and adding only the tools that we need. Alternatively, this could also be done by removing the
FrameOption with the id
OPTION_WIDTH from the
Set allowed actions#
quickOptionList contains all the actions that users can perform on a frame. It also contains
SpaceItems that are used to space out the actions. In our example, we clear the
quickOptionList as we don't want to allow any actions.