@davout
@davout
Forum Replies Created
-
AuthorPosts
-
davoutMember
I’ve solved the problem by setting the ‘datasource’ to an observable
<smart-kanban #kanban class="task-smart-kanban" id="kanban" [collapsible]="collapseColumns" [columns]="kanbanColumns" [dataSource]="specialTasks$ | async" [taskDue]="true" [formatStringDate]="'dd MMM yyyy'" [taskUserIcon]="false" [taskActions]="true" > </smart-kanban>
davoutMemberI have adapted my app to set up a Kanban datasource of one task that is set up as part of the Typescript class as shown below
export class TaskSmartKanbanComponent implements OnInit, OnDestroy, AfterViewInit { @ViewChild('kanban') kanbanComponent: KanbanComponent; // public input properties @Input() viewId: number; @Input() pageSize = 1000; // public properties for Kanban component public kanbanColumns = null; public collapseColumns = true; public tasks = [{ id: 1, dueDate: null, status: '0', text: 'test' } ]; The Kanban shows this one task It simply is not recognizing the updating of the 'datasource' at a later time when my async service call completes I can't find a 'refresh' view model to force the component to redraw itself.
davoutMemberI can’t find any docs to explain the function method signature that is used for this taskTemplate
davoutMemberI found out how to do this from your docs, see:
<h3 id=”toc-taskusericon_boolean” title=”taskUserIcon”><span class=”code”>boolean</span></h3>
<p class=”smart-property-description”>Toggles the visibility of the task user icon.</p>
<div class=”smart-property-default-value”>
<h4>Default value</h4>
<span class=”value”>true</span></div>
<div class=”code-example”>Try a demo showcasing the taskUserIcon property.</div>
<div class=”code-example”>
<h4>Example</h4>
Set the taskUserIcon property.
<pre class=”prettyprint”> <smart-kanban [taskUserIcon]=”true”></smart-kanban>
Set the taskUserIcon property by using the component’s instance.
<pre class=”prettyprint”> this.kanban.taskUserIcon = false;
Get the taskUserIcon property.
<pre class=”prettyprint”> let taskUserIcon = this.kanban.taskUserIcon;
</div>June 18, 2021 at 1:09 pm in reply to: Scheduler/week view – 'all day' row – expand height to show all entries? #101911davoutMemberThanks for that….
Is it also possible to hide the hour based rows BELOW the ‘all day’ row?davoutMemberIf I am displaying a button on each row in a table, how do I connect the tool tip to each instance of the button?
davoutMemberI’ve managed to solve it by pointing the datetimepicker at a component class value, not the table cell value pushed to it by the template
#davoutMemberI’ve noticed that I have to select the new date value twice before the ‘change’ event is triggered
The date time picker is inside a template that is used for table cell editing<ng-template #scheduledDateTemplate let-row="row" let-rowIndex="rowIndex" let-value="value"> <span (click)="startInlineEdit(rowIndex + '-scheduled', rowIndex)" *ngIf="!isInlineEditing(rowIndex + '-scheduled')" title="Click to edit" > {{ value }} </span> <smart-date-time-picker *ngIf="isInlineEditing(rowIndex + '-scheduled')" formatString="ddd dd-MMM-yyyy" dropDownDisplayMode="calendar" drop-down-position="bottom" calendar-button placeholder="for" style="width: 180px" [nullable]="true" [autoClose]="true" [value]="value" [dropDownAppendTo]="'body'" (change)="updateScheduledValue($event)" > </smart-date-time-picker> </ng-template>
March 4, 2021 at 3:43 pm in reply to: smart date time picker bug with reactive form patchvalue #101575davoutMemberIt is not practical to break out the code for very bug. I have provided a clear replication path, and I would expect a support function to do that as part of their role.
The component mark up is shown below…
<smart-date-time-picker
formatString=”ddd dd-MMM-yyyy”
dropDownDisplayMode=”calendar”
drop-down-position=”bottom”
calendar-button placeholder=”for”
style=”width: 180px”
[nullable]=”true”
[autoClose]=”true”
formControlName=”scheduledDate”
[dropDownAppendTo]=”‘body'”
>
</smart-date-time-picker>
… Thiss is how I can calling the control in a reactive formthis.taskForm.get(this.CONTROL_SCHEDULED_DATE).patchValue(null);
February 22, 2021 at 6:49 pm in reply to: Smart button group – work with Angular Reactive form? #101543davoutMemberAn I suggest that you update your documentation to specify what component work with Angular reactive forms? Adding this to the component API guide
February 22, 2021 at 2:52 pm in reply to: Smart button group – work with Angular Reactive form? #101541davoutMemberWhat about https://www.htmlelements.com/angular/demos/buttongroup/overview/#toc-selectedvalues_string ??
February 15, 2021 at 7:56 am in reply to: smart-check-box and Angular reactive form – how to set value? #101502davoutMemberReplication steps
- Start a new Angular project
- Add a new component
- In the component HTML set a reactive form with two ‘smart-check-box’ checkboxes
- In the component init code set up the form with two FormControl elements that pass in an initial false starting value
- Else where in the component code push values into the form using the ‘setValue’ method.
- Try pushing true boolean values into the controls to check the checkboxes – note the error that arises
- Try pushing true string values into the controls – note how the UX does not show the control as checked
February 15, 2021 at 7:20 am in reply to: smart-check-box and Angular reactive form – how to set value? #101500davoutMemberWhat string? Please provide an example, because when I have tried converting the boolean to a string this does not work, as shown below
stateWIP: data.stateFilter.hasState(GdTaskWorkflowState.wip) === true ? ‘true’ : ‘false’,
Anyhow, the component is included on this list https://www.htmlelements.com/docs/angular-reactive-forms/ but it does not support the standard way of communicatingFebruary 14, 2021 at 9:09 pm in reply to: smart-check-box and Angular reactive form – how to set value? #101496davoutMemberBy experiment I’ve found that “smart-check-box” does not work with reactive forms. Is there another version of a check box that I can use from your Smart product?
What does ‘smart-check-input’ do?February 10, 2021 at 5:40 pm in reply to: smart-date-time-picker and Angular reactive form setvalue #101473davoutMemberI am setting the react form value to null but the datepicker is showing today’s date
<smart-date-time-picker id="scheduledStart" autoclose="true" calendar-button down-position="bottom" dropDownDisplayMode="calendar" formatString="dd-MMM-yyyy" placeholder="From" [autoClose]="true" formControlName="scheduledFrom" style="width: 150px"> </smart-date-time-picker>
-
AuthorPosts