@noinfopath/noinfopath-app

> @version 1.1.34

Stats

StarsIssuesVersionUpdatedCreatedSize
@noinfopath/noinfopath-app
1.1.365 years ago5 years agoMinified + gzip package size for @noinfopath/noinfopath-app in KB

Readme

noinfopath.app

@version 1.1.34

build status

Example config object

 {
 el: 'p',
 class: 'no-flex',
 content: '<b>Hello</b>'
}

@method NoComponentService($sanitize)

a service for calling the functions needed for generating html

@param

Name Type Description
$sanitize angular service script to be cleansed

@method decorateEl(el, cfg)

used to decorate an element using a config object (ie class, label)

@param

Name Type Description
el element the element to be decorated
cfg object the configuration of the element to be decorated

@method createButton(cfg)

used to create a button including with a label and icon

 {
     el: "button",
     label: "Back",
     icon: {
         pos: "left",
         class: "glyphicon glyphicon-chevron-left"
     },
     class: "btn btn-default"
 }

@param

Name Type Description
cfg object the configuration of the button

@method createInput(cfg)

creates an input field with a label

 {
     el: "input",
     label: "textfield",
 }

@param

Name Type Description
cfg object the configuration of the input field

return el

@method createContainer()

creates a container for all other elements

 {
     el: "div"
 }

return div

@method createPrimitiveHtml(cfg)

generates the html code using a config object

@param

Name Type Description
cfg object the configuration of the html to be generated

@method render(config)

renders a html tag

@param

Name Type Description
ncl object the configuration of the html tags to be generated

When the preempt task fails, it should return the name of the prompt to execute.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.