File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/packages/core/property/property-layout Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -51,19 +51,28 @@ export class UmbPropertyLayoutElement extends UmbLitElement {
51
51
public description = '' ;
52
52
53
53
/**
54
- * @description Make the property appear invalid
54
+ * @description Make the property appear invalid.
55
55
* @type {boolean }
56
56
* @attr
57
57
* @default undefined
58
58
*/
59
59
@property ( { type : Boolean , reflect : true } )
60
60
public invalid ?: boolean ;
61
61
62
+ /**
63
+ * @description Display a mandatory indicator.
64
+ * @type {boolean }
65
+ * @attr
66
+ * @default false
67
+ */
68
+ @property ( { type : Boolean , reflect : true } )
69
+ public mandatory ?: boolean ;
70
+
62
71
override render ( ) {
63
72
// TODO: Only show alias on label if user has access to DocumentType within settings:
64
73
return html `
65
74
<div id= "headerColumn" >
66
- <uui- label id= "label" title = ${ this . alias } >
75
+ <uui- label id= "label" title = ${ this . alias } ?required = ${ this . mandatory } >
67
76
${ this . localize . string ( this . label ) }
68
77
${ when ( this . invalid , ( ) => html `<uui- badge color = "danger" attention > !</ uui- badge> ` ) }
69
78
</ uui- label>
You can’t perform that action at this time.
0 commit comments