With PAS 23.1.1, the new attribute Custom Attributes has been added to all supported form elements in the Designer to enable the usage of Angular directives. Angular attribute directives are used to change the appearance or behavior of DOM elements and Angular components. Refer to the official Angular documentation for details on how to create an Angular attribute directive.
To create your own directive, switch to <library-name>/projects/<library-name>/src/lib> in your workspace project. You can now use the @angular/cli to create a new directive using the following command: ng generate directive <directive-name>
Step
Example
The sample directive expands a text area when the user enters more then the allowed lines.
1
Write your directive in directory lib in your project and set it as input parameter in your code.
Your custom attribute must be an input for this directive (see textareaAdjustin the example on the right).