We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3de544f commit c2dd09bCopy full SHA for c2dd09b
1 file changed
src/lib/components/button.ts
@@ -24,10 +24,18 @@ export class NgButton extends QPushButton implements NgComponent {
24
namespace?: string | null
25
): void {}
26
27
- public setProperty(name: string, value: any): void {
28
- throw new Error('Method not implemented.');
+ public setProperty(name: string, value: boolean | number): void {
+ switch (name) {
29
+ case 'enabled':
30
+ this.setEnabled(value as boolean);
31
+ break;
32
+ case 'flat':
33
+ this.setFlat(value as boolean);
34
35
+ default:
36
37
+ }
38
}
-
39
public setStyle(
40
style: string,
41
value: any,
0 commit comments