Giter Club home page Giter Club logo

Comments (3)

DavidSpriggs avatar DavidSpriggs commented on June 12, 2024

Do not use domProp.set() this only affects dom properties. In this case you want to set widget properties. In your template set default props like so:

<button data-dojo-type="dijit/form/button" data-dojo-props="disabled:false" data-dojo-attach-event="onClick:startIdentify" data-dojo-attach-point="starIdentifyBTN">Start</button>

Then in your widget code:

startIdentifyBTN.set('disabled', true);

Have a look here for a good tutorial on this.
To load the image, remember that the path is relative to the file its defined in.

from cmv-app.

NTTA-Tarig avatar NTTA-Tarig commented on June 12, 2024

David,

How do you config a pop layer in a MapService. In your example you have the Police layer popup configured nicely to work with the Identify tool
// see if we have a Popup config defined for this layer

It would be nice if we can add a map from arcgis online.

Tarig Ahmed
GIS Analyst
North Texas Tollway Authority
Phone: 214-224-2111 Fax: 469-123-4567
Cell: 469-261-0849
[email protected]:[email protected]
www.ntta.org

[chisholm_email_signature]https://www.ntta.org/roadsprojects/projprog/ChisholmTrail/Pages/default.aspx

Please consider that this email and subsequent responses may be subject to Texas Open Records laws. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized; if you have received this message in error, please notify the sender and permanently delete this email, including any attachments.

From: David Spriggs [mailto:[email protected]]
Sent: Monday, April 14, 2014 6:35 AM
To: DavidSpriggs/ConfigurableViewerJSAPI
Subject: Re: [ConfigurableViewerJSAPI] Can't change the digit property. (#50)

Do not use domProp.set() this only affects dom properties. In this case you want to set widget properties. In your template set default props like so:

<button data-dojo-type="dijit/form/button" data-dojo-props="disabled:false" data-dojo-attach-event="onClick:startIdentify" data-dojo-attach-point="starI

dentifyBTN">Start

Then in your widget code:

startIdentifyBTN.set('disabled', true);

To load the image, remember that the path is relative to the file its defined in.


Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-40356590.

from cmv-app.

lwconquer avatar lwconquer commented on June 12, 2024

Hi David,

Many thanks for your quick reply. It is really helpful. Appreciate it very
much and have a great day.

Best,

Wei

On Mon, Apr 14, 2014 at 6:35 AM, David Spriggs [email protected]:

Do not use domProp.set() this only affects dom properties. In this case
you want to set widget properties. In your template set default props like
so:

Start

Then in your widget code:

startIdentifyBTN.set('disabled', true);

To load the image, remember that the path is relative to the file its
defined in.


Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-40356590
.

from cmv-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.