Hi,
I have installed aui package '@atlassian/aui' using npm in my node modules. Can anyone please give the ES6 syntax to import the modules within the code.
Something like this should work:
import flag from '@atlassian/aui/lib/js/aui/flag'; flag({ type: 'info', title: 'Issue ADG-745 has been created.', persistent: false, body: `<ul class="aui-nav-actions-list"> <li><a href="#">View issue</a></li> <li><a href="#">Add to sprint</a></li> </ul>` });
You can see an example here: aui-umd-example.
The examples makes use of `aui-adg`, which is hosted on a private npm registry, but the example should work for the publicly consumable NPM registry.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.