We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Extended Widget onLoad Event

Received Response
7
Views
1
Comments
edited Feb 25, 2021 4:22PM in Customer Portal 1 comment

Summary

how to fire an event on selectInput page load time

Content

I have a Widget that extends the SelectionInput standard widget.

In the constructor, there is a listener for a CHANGE event, which invokes the _selection() funcion.

  overrides: {
        /**
         * Overrides RightNow.Widgets.SelectionInput#constructor.
         */
        constructor: function() {
            // Call into parent's constructor       
            this.parent();    
            this.on('change', this._selection, this);

So, I need the same of functionality for the onLoad event.
I've tried the following line in the constructor (and created the _load function as well), but it didn't work

 this.on('load', this._load, this);

Is there a way to achieve this requirement?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!