Sha256: 3aa4d6edfbe96eaf4371f0a835f16543df292b131228a9f9b90416f9457a6b8a

Contents?: true

Size: 616 Bytes

Versions: 18

Compression:

Stored size: 616 Bytes

Contents

import {VBase} from './base';

export class VStepperEvent extends VBase {
    constructor(options, params, event, root) {
        super(options, root);
        this.params = params;
        this.event = event;
    }

    call(results) {
        const parentElem = this.root.getElementById(this.params.stepper_id);
        const component = parentElem.vComponent;
        const navAction = this.params.navigate;

        return new Promise(function(resolve) {
            component.navigate(navAction);
            results.push({action: 'stepper', statusCode: 200});
            resolve(results);
        });
    }
}

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
coprl-3.0.0.beta.12 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.11 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.10 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.9 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.8 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.7 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.6 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.5 views/mdc/assets/js/components/events/stepper.js
voom-presenters-2.1.2 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.4 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.3 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.2 views/mdc/assets/js/components/events/stepper.js
coprl-3.0.0.beta.1 views/mdc/assets/js/components/events/stepper.js
voom-presenters-2.1.0 views/mdc/assets/js/components/events/stepper.js
voom-presenters-2.0.3 views/mdc/assets/js/components/events/stepper.js
voom-presenters-2.0.2 views/mdc/assets/js/components/events/stepper.js
voom-presenters-2.0.1 views/mdc/assets/js/components/events/stepper.js
voom-presenters-2.0.0 views/mdc/assets/js/components/events/stepper.js