Skip to content

Creation of Configuration Component#19

Open
GerritBurgerDev wants to merge 5 commits into
masterfrom
task/configuration-component
Open

Creation of Configuration Component#19
GerritBurgerDev wants to merge 5 commits into
masterfrom
task/configuration-component

Conversation

@GerritBurgerDev

@GerritBurgerDev GerritBurgerDev commented Jan 27, 2022

Copy link
Copy Markdown
Collaborator

image

@@ -0,0 +1,11 @@
.mat-slide-toggle.mat-checked {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't quite know where to add this global overwrite so I made a new file for it? Should we rather have a material.scss file for all global angular material overwrites? @ubergeoff

<ng-container *ngIf="!!configComponent">
<div
class="config-sliders"
rooiComponentConfig

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows for each example/component to have it's own configuration component

styleUrls: ['./component-configuration.component.scss']
})
export class ComponentConfigurationComponent {
@Input() title: string | undefined;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason ESLint wants these | undefined types. I don't like it though, should I update the eslint rules?

@@ -0,0 +1,36 @@
<div class="config-container">

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the most detailed example, but Angular Material's updating is sub-par tbh

constructor(private matTableDemoService: MatTableDemoService) {}

toggleRowExpansion(): void {
this.componentConfiguration.enableRowExpansion = !this.componentConfiguration.enableRowExpansion;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be updated. Angular Material table needs a force update to make this work. Do you know how to externally force an update?

constructor(private matTableDemoService: MatTableDemoService) {
this.rowComponent = MatTableRowDemoComponent;
this.expandedRowComponent = MatTableExpansionRowDemoComponent;
// this.expandedRowComponent = MatTableExpansionRowDemoComponent;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be removed

@ubergeoff

Copy link
Copy Markdown
Owner

@GerritBurgerDev - Failing build..? Need some help..?

@GerritBurgerDev

GerritBurgerDev commented Feb 5, 2022 via email

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants