Hidden
Hidden
is invisible technical component that allows to send field value to frontend
Basics
How does it look?
How to add?
Example
Step1 Add String field to corresponding DataResponseDTO.
@Entity
@Table(name = "HiddenBasic")
@Getter
@Setter
@NoArgsConstructor
public class HiddenBasic extends BaseEntity {
private String customField;
}
Step2 Add String field to corresponding BaseEntity.
@Getter
@Setter
@NoArgsConstructor
public class HiddenBasicDTO extends DataResponseDTO {
private String customField;
public HiddenBasicDTO(HiddenBasic entity) {
this.id = entity.getId().toString();
this.customField = entity.getCustomField();
}
}
Step3 Add to .widget.json.
Step3 Add to .widget.json.
Placeholder
not applicable
Color
not applicable
Readonly/Editable
not applicable
Filtering
not applicable
Drilldown
not applicable
Validation
not applicable
Sorting
not applicable
Required
not applicable