0

I'm wondering, as opposed to opening the help dialog when the help link is clicked:

var help = domConstruct.place(this.html, this.domTarget);
on(help, 'click', lang.hitch(this.parentWidget, 'show'));

How might I go about loading the help dialog when the viewer first loads? So, by default the help opens and needs to be actively closed to interact with the viewer?

It looks like I could use this.parentWidget.show(); in postCreate but it doesn't block the ability to interact with the underlying viewer.

How is that accomplished?

1

The help widget can be opened at start up by adding `openAtStartup: true' to the options like this:

help: {
    include: true,
    id: 'help',
    type: 'floating',
    path: 'gis/dijit/Help',
    title: 'Help',
    options: {
        openOnStartup: true
    }
}

Note that there is an issue in the current version of CMV with the content being displayed properly when it is opened in this fashion. See this issue for more information.

  • Thank you. I think you intended openOnStartup as opposed to openAtStartup in the first line? I noticed openOnStartup: true requires onShow whereas openOnStartup: false requires onOpen. Have you observed that? – user3799279 Oct 27 '14 at 18:34
  • Yes I did mean openOnStartup. I have not observed what you mention. The onShow method should work in both situations. – tmcgee Oct 27 '14 at 18:50
  • openOnStartup:false & onOpen works as expected, openOnStartup:true & onShow works as expected, openOnStartup: true & onOpen yields the issue as described in your link (no initial info in navigation tab) and openOnStartup:false & onShow yields only the ContentPane and the word "Help," no TabContainer. – user3799279 Oct 27 '14 at 19:48
  • I've tried openOnStartup:true & onShow and it's doing what I want but I was wondering, I'm using the help widget as a sample for a sort of disclaimer widget. Everything is working fine on load except for the blocking of ui. Why wouldn't that be happening? – user3799279 Oct 27 '14 at 21:29
  • perhaps you gave your widget an id other than 'help'? If so, then you'll need to add or change this entry in main.css: #help_parent_underlay { display: block; } – tmcgee Oct 28 '14 at 17:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.