Public
Authored by Mohammad Ashfaq Memon

IBM MFP custom init

Edited

Snippet to initialize IBM MobileFirst Framework

You have to write below mentioned code snippet in order to initialize your application when you are using IBM MFP. This snippet will be useful for Mobile Application as well as Web Application. For this snippet to work you have to configure <mfp:clientCustomInit enabled="true" /> instead of <mfp:clientCustomInit enabled="false" /> in config.xml file. This configure will prevent automatic initialization of MobileFirst framework.

mfpjsloaded event will be executed when MobileFirst js file is loaded and it completes bootstrapping other necessary resources.

MFPInit.js 1.45 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment