@noinfopath/noinfopath-app

1.1.36 • Public • Published

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.

/@noinfopath/noinfopath-app/

    Package Sidebar

    Install

    npm i @noinfopath/noinfopath-app

    Weekly Downloads

    28

    Version

    1.1.36

    License

    MIT

    Last publish

    Collaborators

    • noinfopath