Function that will run on the pattern's OnRender.
The id of the Submenu element
the API response envelope as a JSON string: { code, isSuccess, message, value? }
{ code, isSuccess, message, value? }
Function that will run on the pattern's OnRender.