code: public static void saveLayout(Layout layout, LayoutIdentifier layoutId, boolean hideScope,
                                    IResponseCallback<LayoutIdentifier> callback) {
          LayoutPrompt.show(layoutId, hideScope, true, CAP_LAYOUT_SAVE, MSG_LAYOUT_SAVE, (event) -> {
              LayoutIdentifier id = event.getTarget().getAttribute("layoutId", LayoutIdentifier.class);
              
              if (id != null) {
                  layout.saveToProperty(id);
                  
                  if (callback != null) {
                      callback.onComplete(id);
                  }
              }
              
          }
docs: Prompts to save layout.
  
  @param layout Layout to save.
  @param layoutId Layout identifier
  @param hideScope If true, hide shared/private scope selection.
  @param callback Callback if layout successfully saved.