Skip to main content

ASPxClientHintOptions.contentAttribute Property

Gets or sets the attribute name.

Declaration

contentAttribute: string

Property Value

Type Description
string

A string value that is the attribute name.

Remarks

Use the contentAttribute property to specify from which target element’s attribute a hint obtains its content.

ASPxClientHint.Register('.class_name', {
  contentAttribute: 'my_content_att', 
  titleAttribute: 'my_title_att'
});

Note that the contentAttribute property default value is title. So if the hint’s content is located in the target element’s title attribute, there is no need to specify the hint’s contentAttribute property.

ASPxClientHint.Register('.class_name', {
  triggerAction: 'click',
  position: 'top'
});

­

To define the hint’s content directly, use the ASPxClientHintOptions.content property.

See Also