Skip to main content

ASPxClientHint.Show(targetSelector) Method

Invokes a hint.

Declaration

static Show(
    targetSelector: string | any | ASPxClientHintOptions,
    options?: ASPxClientHintOptions | string
): void

Parameters

Name Type Description
targetSelector any

The CSS selector.

options string | ASPxClientHintOptions

The options of the hint.

Remarks

Use the Show method to invoke the hint with the specified options.

If you use the Show method to invoke a hint, the ASPxHint.TriggerAction property is set to HintTriggerAction.None and the ASPxClientHintOptions.triggerAction option is set to ‘none’.

The hint is displayed in a callout box if you connect the hint to the target UI element on a web page. To hide the callout box, do not specify the CSS selector for the target element or specify the X/Y coordinates on the screen.

ASPxClientHint.Show(targetSelector, options):

ASPxClientHint.Show('.class_name', 
  {
    content: 'hint content',
    position: 'top',
    title: 'information'
  });

ASPxClientHint.Show(targetSelector, content):

ASPxClientHint.Show('.class_name', 'hint content');

ASPxClientHint.Show(targetElement, options):

var targetElement = document.getElementById("myTargetElementId");  
ASPxClientHint.Show(targetElement,
  {
    content: 'hint content',
    position: 'top',
    title: 'information'
  });

ASPxClientHint.Show(targetElement, content):

var targetElement = document.getElementById("myTargetElementId");  
ASPxClientHint.Show(targetElement, 'hint content');

ASPxClientHint.Show(options):

ASPxClientHint.Show({
    content: 'hint content',
    position: 'top',
    title: 'information'
  });

Note

If you call the Show method with a single parameter, the control processes this parameter as hint options (ASPxClientHintOptions).

Online Demos

See Also