https://github.com/enpit/address-form-oraclejet
An address form composite component that you can use in your Oracle JET application.
https://github.com/enpit/address-form-oraclejet
Last synced: 3 months ago
JSON representation
An address form composite component that you can use in your Oracle JET application.
- Host: GitHub
- URL: https://github.com/enpit/address-form-oraclejet
- Owner: enpit
- License: mit
- Created: 2016-09-23T11:45:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-05T17:13:16.000Z (about 9 years ago)
- Last Synced: 2026-02-05T09:34:17.715Z (4 months ago)
- Language: HTML
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# address-form-oraclejet
An address form composite component that you can use in your Oracle JET application.
## Usage
In your HTML:
``` html
```
In your JS:
``` js
require([
'ojs/ojcore',
'knockout',
'jquery',
'ojs/ojknockout',
'ojs/ojcomposite',
// remember to load address-form-oraclejet via requirejs' paths, so you can do:
'address-form-oraclejet/loader'
],
function(oj, ko, $) {
// do your oraclejet setup stuff here
// ...
// to subscribe to the submit event of the address-form component, do:
window.addEventListener('address-form:submit', function (event) {
console.log(event.detail); // logs the form data as an object
});
}
);
```