update
This commit is contained in:
@@ -36,13 +36,13 @@ export class TestComplexTypes extends DeesElement {
|
||||
`;
|
||||
|
||||
@property({ type: Array })
|
||||
public stringArray: string[] = ['apple', 'banana', 'cherry'];
|
||||
accessor stringArray: string[] = ['apple', 'banana', 'cherry'];
|
||||
|
||||
@property({ type: Array })
|
||||
public numberArray: number[] = [1, 2, 3, 4, 5];
|
||||
accessor numberArray: number[] = [1, 2, 3, 4, 5];
|
||||
|
||||
@property({ attribute: false })
|
||||
public complexData: IComplexData = {
|
||||
accessor complexData: IComplexData = {
|
||||
name: 'Default Name',
|
||||
age: 0,
|
||||
tags: [],
|
||||
@@ -54,19 +54,19 @@ export class TestComplexTypes extends DeesElement {
|
||||
};
|
||||
|
||||
@property({ type: Object })
|
||||
public simpleObject = {
|
||||
accessor simpleObject = {
|
||||
key1: 'value1',
|
||||
key2: 'value2',
|
||||
key3: 123
|
||||
};
|
||||
|
||||
@property({ attribute: false })
|
||||
public functionProperty = () => {
|
||||
accessor functionProperty = () => {
|
||||
console.log('This is a function property');
|
||||
};
|
||||
|
||||
@property({ type: Date })
|
||||
public dateProperty = new Date();
|
||||
accessor dateProperty = new Date();
|
||||
|
||||
public static styles = [
|
||||
css`
|
||||
|
||||
Reference in New Issue
Block a user