forstail
v0.0.1
Published
Forstail is a plain JavaScript Library for browser. it's simple and easy way to build to web page
Downloads
6
Readme
Forstail
Forstail is a plain JavaScript Library for browser. it's simple and easy way to build to web page
Feature
- Module driven development
- Easy to use
- plain JS development
- Focus on functionality
JSON Model
Forstail page using model written by JSON
{
"id" : "org.forstail.sample.img", // Required
"version" : "1.0.0", // Required
"name" : "image", // Required
"description" : "image and description", // Optional not required
"module" : { // Optional not required
"text" : "/component/text.json",
"img" : "/component/img.json",
},
"view" : "/component/image/image.html", // Optional not required
"style" : "/component/image/image.css" // Optional not required
"controller" : "/component/image/controller.js", // Required
"setting" : { // Optional not required | property you need for attach action
"text" : "string? : if null is not showing",
"imgUrl" : "string : image Url",
"width" : "string? : style number module for width ( 100px, 20%, 30pt ) | default value is 100px if null"
"height" : "number? : style number module for width ( 100px, 20%, 30pt ) | default value is 100px if null"
},
"method" : { // Optional not required | Its for Method describe
"setText" : "(text : string) => void",
"setImg" : "(url : string) => void | setImg",
"setSize" : "(width : string, height: string) => void | setSize"
},
"styleSet" : { //Optional not required | It define style-set custom attribute
"customStyleSetKey" : "your style class"
}
}