Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3778

set sclass for slidingtext popup

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: Freshly, 8.0.5, 8.5.0
    • Fix Version/s: 8.5.1
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.1 S1

      Description

      similar to a combobox assign the sclass of the slider widget also to the slidertip element
      this allow custom styling of a specific slider tooltip or hiding it completely

      The implementation should avoid inline styles in favor of CSS classes so that custom overrides can be done without using "!important"

      e.g. currently this is necessary to hide the popup:

      .z-sliding-popup {
         display: none!important;
      }
      

      Workaround

      <script><![CDATA[
      /*custom override to hide sliding text*/
      zk.afterLoad('zul.inp', function() {
      	var xSlider = {};
      	zk.override(zul.inp.Slider.prototype, xSlider, {
      		_startDrag : function(dragInfo) {
      			var result = xSlider._startDrag.apply(this, arguments); //call original method
      			var sliderWgt = dragInfo.control;
      			if (sliderWgt.slidetip)
      				//add sclass to slider tip (allows hidden and other custom styling)
      				jq(sliderWgt.slidetip).addClass(sliderWgt.getSclass());
      			}
      		return result;
      		}
      	});//zk.override
      });//zk.afterLoad
      

        Attachments

          Activity

            People

            Assignee:
            bobpeng bobpeng
            Reporter:
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d