Self ng.Button.make ([HTML_Element parent = document.body], [String position = bottom]) vs. 1.1.0 Full+Lite

Makes a button when an HTML Element doesn't exists (e.g. make a button from scratch).

Parameters

HTML_Element parent (Optional - Default: document.body) vs. 1.1.0 Full+Lite
The parent HTML Element that will hold the button.
String position (Optional - Default: bottom) vs. 1.1.0 Full+Lite
Where to place the button. This can be one of the following:
  • top: the button will be the first element in the parent.
  • before: the button will be placed before the parent element.
  • after: the button will be placed after the parent element.
  • bottom: the button will be the last element in the parent.

Return

Self Required vs. 1.1.0 Full+Lite
The original ng.Button object.

Examples

Using ng.Button.make(parent, position)
Demo:

API Menu