File tree Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,15 @@ export class MgtTasks extends MgtTemplatedComponent {
188188 @property ( { attribute : 'hide-header' , type : Boolean } )
189189 public hideHeader : boolean = false ;
190190
191+ /**
192+ * sets whether the options are rendered
193+ *
194+ * @type {boolean }
195+ * @memberof MgtTasks
196+ */
197+ @property ( { attribute : 'hide-options' , type : Boolean } )
198+ public hideOptions : boolean ;
199+
191200 /**
192201 * allows developer to define specific group id
193202 */
@@ -1012,17 +1021,18 @@ export class MgtTasks extends MgtTemplatedComponent {
10121021 ` ;
10131022 }
10141023
1015- const taskOptions = this . readOnly
1016- ? null
1017- : html `
1018- < div class ="TaskOptions ">
1019- < mgt-dot-options
1020- .options ="${ {
1021- 'Delete Task' : ( ) => this . removeTask ( task )
1022- } } "
1023- > </ mgt-dot-options >
1024- </ div >
1025- ` ;
1024+ const taskOptions =
1025+ this . readOnly || this . hideOptions
1026+ ? null
1027+ : html `
1028+ < div class ="TaskOptions ">
1029+ < mgt-dot-options
1030+ .options ="${ {
1031+ 'Delete Task' : ( ) => this . removeTask ( task )
1032+ } } "
1033+ > </ mgt-dot-options >
1034+ </ div >
1035+ ` ;
10261036
10271037 return html `
10281038 < div
You can’t perform that action at this time.
0 commit comments