Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including sn-controls-aurelia with all npm packages installed. Try it out:

var snControlsAurelia = require("sn-controls-aurelia")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

sn-controls-aurelia v2.0.1

Aurelia controls for sensenet ECM

sn-controls-aurelia

Gitter chat Build Status codecov Codacy Badge NPM version NPM downloads License semantic-release Commitizen friendly Greenkeeper badge

This package contains a collection of UI components and controls for sensenet ECM, written in Aurelia Framewok

Sense/Net Services

Usage and installation

You can install the latest version from NPM

npm install --save sn-controls-aurelia

You can import into your Aurelia application's entry point

import { Repository } from 'sn-client-js';
// ... your other imports

export async function configure(aurelia: Aurelia) {
    aurelia.use
    .standardConfiguration()
    .developmentLogging()
    // ... your other features and plugins
    .plugin(PLATFORM.moduleName('aurelia-validation'))
    .plugin(PLATFORM.moduleName('sn-controls-aurelia'));

    aurelia.container.registerSingleton(Repository.BaseRepository, () => {
        const repo = new Repository.SnRepository(
        {
            RepositoryUrl: 'https://my-sn7-instance',
        });

        return repo;
    });

    await aurelia.start();
    await aurelia.setRoot(PLATFORM.moduleName('app'));
}

If you are using Webpack, add these dependencies into your webpack.config's plugins section:

new ModuleDependenciesPlugin({
    "sn-controls-aurelia": [
    './attributes/ContentDragCustomAttribute',
    './attributes/ContentDropCustomAttribute',
    './attributes/SettingsValidationCustomAttribute'
    ]
}),

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free