Skip to content

Commit

Permalink
feat(platform): form-generator Add support for dynamic width in `Sele…
Browse files Browse the repository at this point in the history
…ct` component through width property

closes [#12302](#12302)

## Description
This implementation allows users to specify the width property on the Select component, enabling them to dynamically adjust its width as needed.
  • Loading branch information
khotcholava committed Oct 16, 2024
1 parent 7b0f1f9 commit bc7aab8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ export class PlatformFormGeneratorExampleComponent {
default: 'IT',
choices: ['IT', 'Accounting', 'Management'],
guiOptions: {
column: 2
column: 2,
additionalData: {
width: '290px'
}
}
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<ng-container [formGroup]="form">
<ng-container [formGroupName]="formGroupName">
<fdp-select
[width]="formItem.guiOptions?.additionalData?.width"
[id]="id"
[placeholder]="placeholder"
[inline]="formItem.guiOptions?.inline !== false"
Expand Down

0 comments on commit bc7aab8

Please sign in to comment.