0.0.1 • Published 4 years ago

forstail v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Forstail

Forstail is a plain JavaScript Library for browser. it's simple and easy way to build to web page

Feature

  1. Module driven development
  2. Easy to use
  3. plain JS development
  4. 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" } }

0.0.1

4 years ago