=======
Defined in basic/component.ts:23
>>>>>>> origin/dev
=======
Defined in basic/component.ts:23
>>>>>>> dev
=======
Defined in components/component.ts:26
>>>>>>> dev
=======
Defined in components/component.ts:26
>>>>>>> dev
=======
Defined in components/component.ts:26
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:26
>>>>>>> dev
>>>>>>> origin/dev
=======
Defined in basic/component.ts:28
>>>>>>> dev
=======
Defined in components/component.ts:30
>>>>>>> dev
=======
Defined in components/component.ts:30
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:30
>>>>>>> dev
attribute
attribute: {
[key: string]: string;
}
>>>>>>> dev
=======
Defined in basic/component.ts:33
>>>>>>> origin/dev
=======
Defined in basic/component.ts:33
>>>>>>> dev
=======
Defined in components/component.ts:35
>>>>>>> dev
=======
Defined in components/component.ts:35
>>>>>>> dev
children
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in basic/component.ts:39
>>>>>>> origin/dev
=======
Defined in basic/component.ts:39
>>>>>>> dev
Protected
pmCss
pmCss: string = ""
=======
Defined in basic/component.ts:42
>>>>>>> origin/dev
=======
Defined in basic/component.ts:42
>>>>>>> dev
=======
Defined in components/component.ts:41
=======
Defined in components/component.ts:41
>>>>>>> dev
=======
Defined in components/component.ts:41
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:41
>>>>>>> dev
>>>>>>> dev
=======
Defined in components/component.ts:44
>>>>>>> dev
=======
Defined in components/component.ts:44
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:44
>>>>>>> dev
Constructors
constructor
- new Component(tag: string, attributes?: {
[key: string]: string;
}, children?: Component[], parent?: null | Component): Component
-
Parameters
-
tag: string
-
attributes: {
[key: string]: string;
} = {}
-
-
parent: null | Component = null
=======
Defined in basic/component.ts:50
>>>>>>> origin/dev
=======
Defined in basic/component.ts:50
>>>>>>> dev
=======
Defined in components/component.ts:53
>>>>>>> dev
=======
Defined in components/component.ts:53
>>>>>>> dev
=======
Defined in components/component.ts:53
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:53
>>>>>>> dev
Methods
getTag
- getTag(): string
-
Returns string
=======
Defined in basic/component.ts:71
>>>>>>> origin/dev
=======
Defined in basic/component.ts:71
>>>>>>> dev
=======
Defined in components/component.ts:76
>>>>>>> dev
=======
Defined in components/component.ts:76
>>>>>>> dev
=======
Defined in components/component.ts:76
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:76
>>>>>>> dev
getAttributes
- getAttributes(): {
[key: string]: string;
}
-
Returns {
[key: string]: string;
}
=======
Defined in basic/component.ts:88
>>>>>>> origin/dev
=======
Defined in basic/component.ts:88
>>>>>>> dev
=======
Defined in components/component.ts:93
>>>>>>> dev
=======
Defined in components/component.ts:93
>>>>>>> dev
=======
Defined in components/component.ts:93
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:93
>>>>>>> dev
getChildren
- getChildren(): Component[]
-
=======
Defined in basic/component.ts:96
>>>>>>> origin/dev
=======
Defined in basic/component.ts:96
>>>>>>> dev
=======
Defined in components/component.ts:101
>>>>>>> dev
=======
Defined in components/component.ts:101
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:101
>>>>>>> dev
getParent
>>>>>>> dev
- getParent(): null | Component
-
=======
Defined in basic/component.ts:112
>>>>>>> origin/dev
=======
Defined in basic/component.ts:112
>>>>>>> dev
addChildren
- addChildren(...childrenToAdd: Component[]): void
-
Returns void
=======
Defined in basic/component.ts:120
>>>>>>> origin/dev
=======
Defined in basic/component.ts:120
>>>>>>> dev
removeChild
- removeChild(child: Component): void
-
Returns void
=======
Defined in basic/component.ts:129
>>>>>>> origin/dev
=======
Defined in basic/component.ts:129
>>>>>>> dev
=======
Defined in components/component.ts:105
>>>>>>> dev
=======
Defined in components/component.ts:105
>>>>>>> dev
=======
Defined in components/component.ts:105
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:109
>>>>>>> dev
setAttribute
- setAttribute(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
=======
Defined in basic/component.ts:150
>>>>>>> origin/dev
=======
Defined in basic/component.ts:150
>>>>>>> dev
=======
Defined in components/component.ts:122
>>>>>>> dev
=======
Defined in components/component.ts:122
>>>>>>> dev
=======
Defined in components/component.ts:122
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:126
>>>>>>> dev
getAttribute
- getAttribute(name: string): undefined | string
-
Returns undefined | string
=======
Defined in basic/component.ts:159
>>>>>>> origin/dev
=======
Defined in basic/component.ts:159
>>>>>>> dev
=======
Defined in components/component.ts:131
>>>>>>> dev
=======
Defined in components/component.ts:131
>>>>>>> dev
=======
Defined in components/component.ts:131
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:135
>>>>>>> dev
removeAttribute
- removeAttribute(name: string): void
-
Returns void
=======
Defined in basic/component.ts:167
>>>>>>> origin/dev
=======
Defined in basic/component.ts:167
>>>>>>> dev
=======
Defined in components/component.ts:139
>>>>>>> dev
=======
Defined in components/component.ts:139
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:143
>>>>>>> dev
addChild
>>>>>>> dev
- addChild(child: Component): void
-
Returns void
addChildren
- addChildren(...childrenToAdd: Component[]): void
-
Returns void
=======
Defined in basic/component.ts:183
>>>>>>> origin/dev
=======
Defined in basic/component.ts:183
>>>>>>> dev
=======
Defined in components/component.ts:179
=======
Defined in components/component.ts:179
>>>>>>> dev
=======
Defined in components/component.ts:179
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:183
>>>>>>> dev
removeChild
- removeChild(child: Component): void
-
Returns void
>>>>>>> dev
=======
Defined in components/component.ts:196
>>>>>>> dev
=======
Defined in components/component.ts:196
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:200
>>>>>>> dev
addClasses
- addClasses(...classNames: string[]): void
-
Parameters
-
Rest
...classNames: string[]
Returns void
=======
Defined in basic/component.ts:200
>>>>>>> origin/dev
=======
Defined in basic/component.ts:200
>>>>>>> dev
setStyles
- setStyles(properties: {
[key: string]: string;
}): void
-
Parameters
-
properties: {
[key: string]: string;
}
Returns void
=======
Defined in basic/component.ts:217
>>>>>>> origin/dev
=======
Defined in basic/component.ts:217
>>>>>>> dev
deleteStyles
- deleteStyles(...properties: string[]): void
-
Parameters
-
Rest
...properties: string[]
Returns void
=======
Defined in basic/component.ts:229
>>>>>>> origin/dev
=======
Defined in basic/component.ts:229
>>>>>>> dev
=======
Defined in components/component.ts:214
>>>>>>> dev
=======
Defined in components/component.ts:214
>>>>>>> dev
=======
Defined in components/component.ts:214
>>>>>>> dev:docs/classes/index.Component.html
=======
Defined in components/component.ts:218
>>>>>>> dev
toString
- toString(): string
-
Returns string
=======
Defined in basic/component.ts:251
>>>>>>> origin/dev
=======
Defined in basic/component.ts:251
>>>>>>> dev
fill
- fill(direction: "both" | "vertical" | "horizontal"): void
-
Parameters
-
direction: "both" | "vertical" | "horizontal"
Returns void
=======
Defined in basic/component.ts:268
>>>>>>> origin/dev
=======
Defined in basic/component.ts:268
>>>>>>> dev
align
- align(vertical: "top" | "bottom" | "middle", horizontal: "center" | "left" | "right"): void
-
Parameters
-
vertical: "top" | "bottom" | "middle"
-
horizontal: "center" | "left" | "right"
Returns void
Component
Represents the entire hirarchy of HTML elements Each and every html element can be expressed as a single Component or A hirarchy of components.
Remarks
This class hirarchy is then compiled into normal HTML code. This Component can be inherited to create newer more complex components.
Example
Creating A component
Author
Sujal Choudhari sjlchoudhari@gmail.com