Control TAG
Attributes of control tags
namespace: Provided in the “pac” command earlier.
constructor: Provided in the “pac” command earlier.
version: change the versioning if needed; else, we can keep it to default.
display-name-key: This will be the display name with no spaces for custom control.
description-key: This description will be shown in D365 for custom control.
control-type: We will keep the default value
Property TAG
Attributes of property tags
name: Provide the name that will be used for custom control.
display-name-key: Provide the display name with no spaces for custom control.
description-key: This description will be shown in D365 for custom control.
of-type: If we are using a single datatype, then there are some supported datatype that can be used for the of-type attribute.
Valid values are:
TwoOptions
Whole.None
Currency
DateAndTime.DateAndTime
DateAndTime.DateOnly
SingleLine.Email
SingleLine.Phone
SingleLine.Text
SingleLine.TextArea
SingleLine.Ticker
SingleLine.URL
Decimal
Enum
FP
Multiple
Optionset
of-type-group: if we are building control that will support multiple data-type, then we need to use the of-type-group attribute.
Let us define a type-group:
<type-group name=”line”>
<type>SingleLine.Email</type>
<type>SingleLine.Phone</type>
<type>SingleLine.Text</type>
<type>SingleLine.URL</type>
</type-group>
DataSet TAG
Attributes of data-set tags
name: Provide the name of the data setused to get the value in a custom control.
display-name-key: Provide the display name with no spaces that will be set while importing in App.
description-key: This description will be shown in D365 for custom control.
Resources TAG
Subtags of Resources tags
code: Provide the relative path for typescript file which contains code for custom control
css – Provide the CSS files that need to be added.
resx – Provide the file path that contains static string contents that are needed for the control.
img – Provide the images that are needed in the project.
No comments:
Post a Comment