function toggleActionGroup(group) {
    // Hide all other groups and the associated elements.
    $("#trackmage-shipment-tracking .actions__action-group").hide();
    $("#trackmage-shipment-tracking [data-action-group]").hide();

    // Display the desired group and its associated elements.
    const groupEl = $(
      `#trackmage-shipment-tracking .actions__action-group--${group}`
    );
    $(groupEl).show();
    $(`#trackmage-shipment-tracking [data-action-group=${group}]`).show();

    // Return the element of the displayed group.
    return groupEl;
  }
/**
   * Toggle action group in the meta box.
   *
   * @param {string} group The id of the group to be displayed.
   * @return {object} The element of the displayed group.
   */
Toggle action group in the meta box.
@param {string} group The id of the group to be displayed.
@return {object} The element of the displayed group.
Toggle action group in the meta box . @param { string } group The id of the group to be displayed . @return { object } The element of the displayed group .
function toggleActionGroup(group) {
    $("#trackmage-shipment-tracking .actions__action-group").hide();
    $("#trackmage-shipment-tracking [data-action-group]").hide();
    const groupEl = $(
      `#trackmage-shipment-tracking .actions__action-group--${group}`
    );
    $(groupEl).show();
    $(`#trackmage-shipment-tracking [data-action-group=${group}]`).show();
    return groupEl;
  }
function toggleActionGroup ( group ) { $ ( "#trackmage-shipment-tracking .actions__action-group" ) . hide ( ) ; $ ( "#trackmage-shipment-tracking [data-action-group]" ) . hide ( ) ; const groupEl = $ ( ` ${ group } ` ) ; $ ( groupEl ) . show ( ) ; $ ( ` ${ group } ` ) . show ( ) ; return groupEl ; }
Toggle action group in the meta box.
Toggle action group in the meta box .
// Hide all other groups and the associated elements. // Display the desired group and its associated elements. // Return the element of the displayed group.