Tuesday 30 October 2018

Add New Module In Oracle JET Application

Hi Guys, In this post I'll share how Oracle JET Added new module in existing project.
We have default JET Application created for JET App Creation follow my Previous post Oracle JET Application which includes Dashboard/Incidents/Customers/About modules.

Now We'll add new Module Employees into existing application.
We can create .js and .html files inside viewModel and views using netbeen IDE or using CLI.
I am creating using netbean IDE.
Right click on viewModel --> New --> Other --> HTML5/JavaScript --> Empty JET Module
Select js and html folder directory from the project and give the file name like in my case i have given employees.




Now file will loaded into main.js where we'll find the require followed by appController parameter.
in the appController we need to register our newly created Module.

I just copy paste the below code-
'employees': {label: 'Employees'},

and added code in var data -
{name: 'Employees', id: 'employees',
       iconClass: 'oj-navigationlist-item-icon demo-icon-font-24 demo-people-icon-24'},
Now save the workspace and refresh the browser.
We can see the newly added module in Application.
So Guys we can simply add as many as mudules require in Our application.

Cheers Guys :)

No comments:

Eclipse With Python

Hi Guys, Today i'll share how to start python project in eclipse IDE. to start Py development in eclipse we need to add Py Dev plugi...