Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Possible to append suffix on class name only but not on image?

    With regards to isc.StatefulCanvas, is it possible to not append the suffix on the image name such as '_Over' but keep the class name appended with the suffix?

    This can be illustrated on the following code snippet using SmartClient Version: v9.1p_2015-08-21/Pro Deployment (built 2015-08-21) on Chrome 44.0:

    Code:
        isc.ImgButton.create({
          src: "http://www.google.com/favicon.ico"
        });
    Current behavior on roll over:
    Code:
    <div class=”imgButtonOver”><img src=[URL]http://www.google.com/favicon_Over.ico[/URL]></img></div>
    Desired behavior on roll over:
    Code:
    <div class=”imgButtonOver”><img src=[URL]http://www.google.com/favicon.ico[/URL]></img></div>
    The following have already been attempted but to no avail:
    -using 'showRollOver: false' will remove the suffix for both class and image
    -using 'showRollOverIcon: false' seems to only apply to icons

    ----------------
    SmartClient Version: v9.1p_2015-08-21/Pro Deployment (built 2015-08-21)
    Windows 7 Chrome 44.0.2403.157

    #2
    How about instead of using an Img widget, you use a StatefulCanvas and set the contents to the result of Canvas.imgHTML(...);
    This will give you a stateful css style, but avoid the Img widget's built in handling to apply state to the image URL.

    Comment


      #3
      Instead of creating an isc.ImgButton, we are actually trying to customize the restoreButton, closeButton, maximizeButton, etc. in isc.Portlet to have that desired effect. Is there a way to achieve that?

      Comment


        #4
        There are a few options, including fundamentally altering the closeButton (etc) via closeButtonProperties -- possibly even changing its class using the _constructor attribute.

        However, probably the easiest would be to override the headerControls of the Window and insert your own widgets instead of using the defaults.

        Regards
        Isomorphic Software

        Comment

        Working...
        X