This repository was archived by the owner on Mar 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 192
DevDocComponents
Pomax edited this page Sep 19, 2014
·
6 revisions
The appmaker project consists of three parts:
-
ceci, an implementation of Custom Elements, based on Polymer, defined in the./public/cecidirectory. - A collection of predefined elements (called "bricks" or "components" in most technical discussions relating to appmaker) located in the
./public/bundles/componentsdirectory - An app-making single-page designer webapp, with front-end code located in the
./public/designerdirectory, and backend code located in the usual places for an express app.
Appmaker components, or bricks, are HTML5 Custom Elements defined using the Polymer framework, and enriched with some of Appmaker's ceci framework functions.
Appmaker components all live in the ./public/bundles/components directory, and each component lives in its own directory, named component-...; the button component lives in "component-button", the header component lives in "component-header", etc.
Each component has to have at least a ./component.html file, for its definition, and a ./locale/en-US.json file for defining all the component's localizable strings.
<polymer-element name="ceci-..." attributes="..." extends="ceci-element">
<ceci-definition>
{
"tags": ["...", ...],
"thumbnail": "./thumbnail.png",
"description": "...",
"name": "...",
"broadcasts": {
...
},
"listeners": {
...
},
"attributes": {
...
}
}
</ceci-definition>
<template>
<link rel="stylesheet" href="component.css"></link>
<!-- actual HTML code that defines the internal skeleton -->
<shadow></shadow>
</template>
<script>
Polymer('ceci-...', {
ready: function () {
this.super();
// your code goes here
},
attached: function () {
this.super();
// your code goes here
},
...more yourelement.prototype functions go here...
});
</script>
</polymer-element>
structure:
{
}
structure:
{
}
structure:
{
}