TTMSFNCDataBinder.ConnectListHTMLTemplate Method
Creates a list binding using HTML templates for multiple sub-properties.
API unit family: TMSFNCDataBinding
Declaring type: TTMSFNCDataBinder
Overloads
Overload 1
Creates a list binding using HTML templates for multiple sub-properties.
function ConnectListHTMLTemplate(AObject: TObject; ADataSource: TDataSource; APropertyName: string; ASubPropertyNames: TTMSFNCDataBinderStringArray; ASubHTMLTemplates: TTMSFNCDataBinderStringArray): TTMSFNCDataBinderItem; overload;
Parameters
| Name | Description |
|---|---|
AObject |
Component whose list property is populated. |
ADataSource |
Data source supplying the dataset. |
APropertyName |
Name of the list property on the component. |
ASubPropertyNames |
Sub-property names within each list item. |
ASubHTMLTemplates |
HTML templates applied to each sub-property. |
Returns
The new binding item added to the Items collection.
Overload 2
Creates a list binding using a single HTML template applied to each item.
function ConnectListHTMLTemplate(AObject: TObject; ADataSource: TDataSource; APropertyName: string; AHTMLTemplate: string): TTMSFNCDataBinderItem; overload;
Parameters
| Name | Description |
|---|---|
AObject |
Component whose list property is populated. |
ADataSource |
Data source supplying the dataset. |
APropertyName |
Name of the list property on the component. |
AHTMLTemplate |
HTML template string applied to each list item. |
Returns
The new binding item added to the Items collection.