Returns <img class='help' tooltip='Your Input' src='refinery/icons/information.png' />
 Remember to wrap your block with <span class='label_with_help'></span> if you're using a label next to the help tag.
541787
def refinery_help_tag(title='Tip')
      title = title.html_safe? ? title : h(title)
      action_icon(:info, '#', title, {tooltip: title})
    end
618601
function tooltip() {
    var _this6 = this;

    var options = this.options,
        tooltipBox = this.tooltipBox,
        imageData = this.imageData;


    if (!this.viewed || this.played || !options.tooltip) {
      return this;
    }

    tooltipBox.textContent = Math.round(imageData.ratio * 100) + '%';

    if (!this.tooltipping) {
      if (options.transition) {
        if (this.fading) {
          dispatchEvent(tooltipBox, EVENT_TRANSITION_END);
        }

        addClass(tooltipBox, CLASS_SHOW);
        addClass(tooltipBox, CLASS_FADE);
        addClass(tooltipBox, CLASS_TRANSITION);

        // Force reflow to enable CSS3 transition
        // eslint-disable-next-line
        tooltipBox.offsetWidth;
        addClass(tooltipBox, CLASS_IN);
      } else {
        addClass(tooltipBox, CLASS_SHOW);
      }
    } else {
      clearTimeout(this.tooltipping);
    }

    this.tooltipping = setTimeout(function () {
      if (options.transition) {
        addListener(tooltipBox, EVENT_TRANSITION_END, function () {
          removeClass(tooltipBox, CLASS_SHOW);
          removeClass(tooltipBox, CLASS_FADE);
          removeClass(tooltipBox, CLASS_TRANSITION);
          _this6.fading = false;
        }, {
          once: true
        });

        removeClass(tooltipBox, CLASS_IN);
        _this6.fading = true;
      } else {
        removeClass(tooltipBox, CLASS_SHOW);
      }

      _this6.tooltipping = false;
    }, 1000);

    return this;
  }
687117
def show_help(self):
        
        # Read the header and footer html snippets
        self.main_stacked_widget.setCurrentIndex(0)
        header = html_header()
        footer = html_footer()

        string = header

        message = impact_report_help()

        string += message.to_html()
        string += footer

        self.help_web_view.setHtml(string)
291458
def set_label(self):
		
		if not self.field.label or self.attrs.get("_no_label"):
			return

		self.values["label"] = format_html(
			LABEL_TEMPLATE, self.field.html_name, mark_safe(self.field.label)
		)
1250323
function() {

        var defaultLabel = this.get('defaultLabel') || this.defaultLabel || {};

        var label = {};
        label.markup = defaultLabel.markup || this.get('labelMarkup') || this.labelMarkup;
        label.position = defaultLabel.position;
        label.attrs = defaultLabel.attrs;
        label.size = defaultLabel.size;

        return label;
    }
1199966
protected function getInsensitiveTag()
    {
        $tag = new SwatHtmlTag('span');

        $tag->id = $this->id;
        $tag->class = $this->getCSSClassString();

        if ($this->tooltip !== null) {
            $tag->title = $this->tooltip;
        }

        return $tag;
    }
58335
protected function getLabel()
	{
		// Initialise variables.
		$label = '';

		if ($this->hidden)
		{
			return $label;
		}

		// Get the label text from the XML element, defaulting to the element name.
		$text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name'];
		$text = $this->translateLabel ? Lang::txt($text) : $text;

		// Build the class for the label.
		$class = !empty($this->description) ? 'hasTip' : '';
		$class = $this->required == true ? $class . ' required-field' : $class;
		$class = !empty($this->labelClass) ? $class . ' ' . $this->labelClass : $class;

		// Add the opening label tag and main attributes attributes.
		$label .= '<label id="' . $this->id . '-lbl" for="' . $this->id . '" class="' . $class . '"';

		// If a description is specified, use it to build a tooltip.
		if (!empty($this->description))
		{
			$label .= ' title="'
				. htmlspecialchars(
				trim($text, ':') . '::' . ($this->translateDescription ? Lang::txt($this->description) : $this->description),
				ENT_COMPAT, 'UTF-8'
			) . '"';
		}

		// Add the label text and closing tag.
		if ($this->required)
		{
			$label .= '>' . $text . ' <span class="required star">' . Lang::txt('JOPTION_REQUIRED'). '</span></label>';
		}
		else
		{
			$label .= '>' . $text . '</label>';
		}

		return $label;
	}
348032
def get_help_html(message=None):
    

    html = html_help_header()

    if message is None:
        message = dock_help()

    html += message.to_html()
    html += html_footer()
    return html
59587
function (iconInfo) {
            var cfg = this._cfg;
            var cssClasses = ariaCoreTplClassLoader.addPrintOptions(this._cssClassNames, cfg.printOptions);
            if (iconInfo.cssClass) {
                cssClasses += " " + iconInfo.cssClass;
            }
            if (cfg.block) {
                cssClasses += " xBlock";
            }
            return cssClasses;
        }
158492
public function htmlLabel($control, $options = ['class' => 'form-block__name'])
    {
        $this->labels[] = $control->name;
        $value          = e($this->formatLabel($control->name, $control->label));
        $tip            = isset($control->tip) ? tooltip($control->name, $control->tip) : '';
        return '<label for="' . $control->name . '"' . $this->html->attributes($options) . '>' . $value . $tip . '</label>';
    }
513726
function Element(domElement) {

      // Helpers
      this.attr = function(attrName) {
        return domElement.getAttributeNS(null, attrName);
      };

      // Properties
      this.tag = domElement.tagName;
      this.class = this.attr('class');
      this.id = this.attr('id');

      // Methods
      this.isNode = function() {
        return !!~this.class.indexOf(self.settings('classPrefix') + '-node');
      };

      this.isEdge = function() {
        return !!~this.class.indexOf(self.settings('classPrefix') + '-edge');
      };

      this.isHover = function() {
        return !!~this.class.indexOf(self.settings('classPrefix') + '-hover');
      };
    }
1034679
public function getIcon()
    {
        if (!$this->icon) {
            return "";
        }
        return Html::get()->image($this->icon, $this->translate($this->label));
    }
774024
private String getImageClass() {

        switch (m_state) {
            case on:
                return CSS.triStateOn();
            case off:
                return CSS.triStateOff();
            case middle:
            default:
                return CSS.triStateMedium();
        }

    }
1372321
def status_icon(self):
        ''
        icon = self.status_icon_map.get(self.status.lower(),
                                        self.unknown_icon)
        style = self.status_style.get(self.status.lower(), '')
        return mark_safe(
            '<span class="glyphicon %s %s" aria-hidden="true"></span>' %
            (icon, style))
441334
function() {
    this.setHelpUrl(Blockly.Msg.TEXT_TEXT_HELPURL);
    this.setColour(Blockly.Blocks.texts.HUE);
    this.appendDummyInput()
        .appendField(this.newQuote_(true))
        .appendField(new Blockly.FieldTextInput(''), 'TEXT')
        .appendField(this.newQuote_(false));
    this.setOutput(true, 'String');
    // Assign 'this' to a variable for use in the tooltip closure below.
    var thisBlock = this;
    // Text block is trivial.  Use tooltip of parent block if it exists.
    this.setTooltip(function() {
      var parent = thisBlock.getParent();
      return (parent && parent.tooltip) || Blockly.Msg.TEXT_TEXT_TOOLTIP;
    });
  }
684485
def define_helper_blocks
      define CONTENT_TAG_WRAPPER_BLOCK, defaults: { wrapper_tag: :div } do |content_block, *args|
        options = args.extract_options!
        wrapper_options = if options[:wrapper_html_option]
          if options[:wrapper_html_option].is_a?(Array)
            wrapper_attribute = nil
            options[:wrapper_html_option].each do |attribute|
              if options[attribute].present?
                wrapper_attribute = attribute
                break
              end
            end
            options[wrapper_attribute]
          else
            options[options[:wrapper_html_option]]
          end
        end
        content_tag options[:wrapper_tag],
          concatenating_merge(options[:wrapper_html], wrapper_options, *args, options),
          &content_block
      end
    end
457006
function (out) {
            var cfg = this._cfg, showLabel = (!cfg.hideLabel && !!cfg.label);

            if (this._isIE7OrLess) {
                out.write('<span style="display: inline-block;">');
            }
            if (showLabel) {
                // process label
                if (cfg.labelPos === "left") {
                    this._inputLabelMarkup(out, 'inline-block', 'right');
                    this._inputMarkup(out);
                } else if (cfg.labelPos === "top") {
                    this._inputLabelMarkup(out, 'block', false);
                    this._inputMarkup(out);
                } else if (cfg.labelPos === "bottom") {
                    this._inputMarkup(out);
                    this._inputLabelMarkup(out, 'block', false);
                } else { // right
                    if (this._fullWidth) {
                        this._inputLabelMarkup(out, 'inline-block', 'left');
                        this._inputMarkup(out);
                    } else {
                        this._inputMarkup(out);
                        this._inputLabelMarkup(out, 'inline-block', 'left');
                    }
                }

            } else {
                // no label
                this._inputMarkup(out);
            }
            if (this._isIE7OrLess) {
                out.write('</span>');
            }
        }